Created
December 16, 2014 17:51
-
-
Save v1m/ea88e166c9db1e18038b to your computer and use it in GitHub Desktop.
use this file
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
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