Last active
August 29, 2015 14:23
-
-
Save rizsotto/319d4a7365f337169059 to your computer and use it in GitHub Desktop.
my basic vim config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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