Skip to content

Instantly share code, notes, and snippets.

@honix
Last active August 26, 2017 20:19
Show Gist options
  • Save honix/0576e42c25ebac72f5b588c5b2f18ae4 to your computer and use it in GitHub Desktop.
Save honix/0576e42c25ebac72f5b588c5b2f18ae4 to your computer and use it in GitHub Desktop.
my vim editor settings
" github.com/honix
" VIM CONFIGURATION
set nocompatible
""" VISUALS
" Visualy combos
set showcmd
" Display line numbers on the left
set number
" Gui settings
set guiheadroom=0
"set guioptions-=m "menu bar is good
set guioptions-=T "toolbar
set guioptions-=r "scrollbar
set guioptions-=L "scrollbar
" Enable syntax highlighting
syntax on
" Better command-line completion
set wildmenu
set hlsearch
set incsearch
" Cursor view width
set so=5
""" SYSTEM
" Find in sub-sub-sub.. folders
set path+=**
" Determines filetype from name to allow intelligent auto-indenting, etc.
filetype indent plugin on
" Use case insensitive search except when using capital letters
set ignorecase
set smartcase
" When opening a new line and no file-specific indenting is enabled,
" keep same indent as the line you're currently on
set autoindent
""" Short-keys
" Go normal mode
imap fj <Esc>
imap jf <Esc>
""" Visual tabbing
" Number of visual spaces per TAB
set tabstop=4
" Number of spaces in TAB when editing
set softtabstop=4
" Number of spaces indented when reindent operations (>> and <<) are used
set shiftwidth=4
" Convert TABs to spaces
"set expandtab
" Enable intelligent tabbing and spacing for indentation and alignment
set smarttab
" Backspace over everything
set backspace=2
if has('gui_running')
colorscheme peachpuff
set guifont=Monospace\ 11
set cursorline
hi Cursor guifg=#200020
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment