Skip to content

Instantly share code, notes, and snippets.

@v1m
Created December 16, 2014 17:51
Show Gist options
  • Save v1m/ea88e166c9db1e18038b to your computer and use it in GitHub Desktop.
Save v1m/ea88e166c9db1e18038b to your computer and use it in GitHub Desktop.
use this file
execute pathogen#infect()
syntax on
filetype plugin indent on
set incsearch
set hlsearch
"filetype on
color oceandeep
"set background=dark
"colorscheme solarized
set vb
set nu
set autoindent
set smartindent
"for python code
"http://wiki.python.org/moin/ViImproved%20(Vim)
autocmd BufRead,BufNewFile *.py syntax on
autocmd BufRead,BufNewFile *.py set ai
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
"http://wiki.python.org/moin/Vim
au FileType python setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4
"toggle the set list command with \l
nmap <leader>l :set list!<CR>
"http://vim.wikia.com/wiki/Highlight_unwanted_spaces
set listchars=tab:\|-,eol:$
"set listchars=tab:»,trail:·,eol
"set listchars=tab:»·,eol:¶,trai
" Source the vimrc file after saving it
if has("autocmd")
autocmd bufwritepost _vimrc source $MYVIMRC
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment