Created
February 20, 2015 01:30
-
-
Save sunilmallya/76766675367717cb44f7 to your computer and use it in GitHub Desktop.
vim settings for python
This file contains 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
syntax on | |
filetype indent plugin on | |
setlocal tabstop=4 | |
set tabstop=4 shiftwidth=4 expandtab | |
set showmatch " highlight matching braces | |
set comments=sl:/*,mb:\ *,elx:\ */ " intelligent comments | |
set nocompatible " dont support vi stuff | |
set autoindent | |
set smartindent | |
set textwidth=80 | |
au FileType python setl shiftwidth=4 tabstop=4 autoindent expandtab | |
au BufEnter,BufRead *.py setlocal smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class | |
set pastetoggle=<F10> " set paste | |
set ruler " show line and column number | |
set showcmd " show (partial) command in status line | |
"set spelllang=en | |
highlight Comment ctermfg=DarkGreen | |
highlight Constant ctermfg=DarkMagenta | |
highlight Character ctermfg=DarkRed | |
highlight Special ctermfg=DarkBlue | |
highlight Identifier ctermfg=DarkCyan | |
highlight Statement ctermfg=DarkBlue | |
highlight PreProc ctermfg=DarkBlue | |
highlight Type ctermfg=DarkBlue | |
highlight Number ctermfg=DarkBlue | |
highlight Delimiter ctermfg=DarkBlue | |
highlight Error ctermfg=Black | |
highlight Todo ctermfg=DarkBlue | |
highlight WarningMsg term=NONE ctermfg=Black ctermbg=NONE | |
highlight ErrorMsg term=NONE ctermfg=DarkRed ctermbg=NONE | |
set background=dark | |
# for python indentline :: http://www.vim.org/scripts/script.php?script_id=4354 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment