set nocompatible " Pretty print options syntax on filetype on filetype indent on filetype plugin on set laststatus=2 set statusline=%<%f\%h%m%r%=%-20.(line=%l\ col=%c%V\ \ totlin=%L%)\ \%h%m%r%=%-40(bytval=0x%B,%n%Y%)\%P set nu " Other goodies set backspace=indent,eol,start set nohlsearch ignorecase incsearch smartcase set wildignore=*.o,*.pyc,*.swp set wildmenu set wildmode=longest:full,list:full " Tab handling by vim set expandtab set tabstop=4 set shiftwidth=4 set copyindent " Map to handle multiple buffers map j map k set wmh=0 set winheight=999 " New splits open in 'maximized' mode " Map Space and Shift-Space to Pagedown and Pageup respectively map " Highlight trailing whitespace highlight TrailingWhiteSpace ctermbg=lightgreen guibg=lightgreen match TrailingWhiteSpace /\s\+$/ autocmd WinEnter * match TrailingWhiteSpace /\s\+$/ " Spell checker syn spell toplevel " Uncomment next line or set the spell option when editting text files. " set spell spelllang=en_us " Python code completion " Does not work in CSL machines as vim is not compiled with python support " autocmd FileType python set omnifunc=pythoncomplete#Complete " Needs vim syntax file for Python " http://www.vim.org/scripts/script.php?script_id=790 " Python syntax highlighting let python_highlight_all=1