" My vimrc, with redundant and overridden definitions removed. runtime! debian.vim execute pathogen#infect() if has("syntax") syntax on endif vmap c"+p imap + " CTRL-X and SHIFT-Del are Cut vnoremap "+x vnoremap "+x " CTRL-C and CTRL-Insert are Copy vnoremap "+y vnoremap "+y " CTRL-V and SHIFT-Insert are Paste map "+gP cmap + cmap + if filereadable("/etc/vim/vimrc.local") source /etc/vim/vimrc.local endif set guioptions-=m "remove menu bar set guioptions-=T "remove toolbar set nocompatible set guifont=Operator\ Mono\ 12 set shiftwidth=2 set expandtab set tabstop=2 set autoindent autocmd BufRead,BufNewFile *.py setlocal ai ts=4 sts=4 et sw=4 autocmd BufRead,BufNewFile *.php setlocal ai ts=4 sts=4 et sw=4 filetype plugin indent on retab set syntax=automatic set hlsearch set number highlight ExtraWhitespace ctermbg=red guibg=darkred match ExtraWhitespace /\s\+$/ autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@t :FuzzyFinderTextMate set backupdir=~/.vim/temp,. set directory=~/.vim/temp,. set backupcopy=yes let NERDTreeIgnore=['.vim$', '\~$', '.*\.pyc$', 'pip-log\.txt$', 'whoosh_index', 'xapian_index', '.*.pid', 'monitor.py', '.*-fixtures-.*.json', '.*\.o$', 'db.db'] let NERDTreeMinimalUI = 1 let NERDTreeDirArrows = 1 let NERDTreeShowHidden = 1 map :tabnext map :tabprev map h :vsplit map v :sp map a :sp map r :NERDTreeFind au BufRead,BufNewFile *.go set filetype=go au BufRead,BufNewFile *.twig set syntax=htmljinja au BufRead,BufNewFile *.json.jbuilder set ft=ruby au BufRead,BufNewFile *.es6 set filetype=javascript au BufRead,BufNewFile *.rabl setf ruby let g:ycm_allow_changing_updatetime = 0 let g:syntastic_eruby_ruby_quiet_messages = {'regex': 'possibly useless use of .* in void context'} " syntastic: https://github.com/scrooloose/syntastic set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%* let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 let g:syntastic_enable_sass_checker = 1 let g:syntastic_enable_scss_checker = 0 let g:syntastic_enable_css_checker = 0 let g:syntastic_enable_pep8_checker = 1 let g:syntastic_javascript_checkers = ['jsxhint'] let g:syntastic_python_checkers=["flake8"] let g:syntastic_python_flake8_args='--ignore=F821,E302,E501,E731' let g:syntastic_go_checkers = ['golint', 'govet'] let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] } let g:go_list_type = "quickfix" autocmd BufNewFile,BufRead *.apxc,*.apxt,*.cls,*.trigger,*.tgr set filetype=apex autocmd BufNewFile,BufRead *.vfp,*.vfc,*.page,*.component set filetype=visualforce autocmd SwapExists * let v:swapchoice = "e"