Skip to content

Instantly share code, notes, and snippets.

@rizsotto
Last active August 29, 2015 14:23
Show Gist options
  • Save rizsotto/319d4a7365f337169059 to your computer and use it in GitHub Desktop.
Save rizsotto/319d4a7365f337169059 to your computer and use it in GitHub Desktop.
my basic vim config
yntax enable
colorscheme industry
set background=dark
set encoding=utf8
set ffs=unix,dos,mac
set expandtab
set smarttab
set shiftwidth=4
set tabstop=4
set ai "Auto indent
set si "Smart indent
set wrap "Wrap lines
" Delete trailing white space on save, useful for Python and CoffeeScript ;)
func! DeleteTrailingWS()
exe "normal mz"
%s/\s\+$//ge
exe "normal `z"
endfunc
autocmd BufWrite *.py :call DeleteTrailingWS()
" Set 7 lines to the cursor - when moving vertically using j/k
set so=4
"Always show current position
set ruler
" Ignore case when searching
set ignorecase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment