" wreed vimrc " vim: set foldmethod=marker: "{{{ ***** PLUGINS ***** " " Pathogen call pathogen#infect() call pathogen#helptags() " PyMode options let pymode_lint_ignore="E501,E401,E225,W191,W391,W404" " use rope code assist instead of a complete function " au FileType python inoremap '=RopeCodeAssistInsertMode()=pumvisible() ? "\C-p>\Down>" : ""' " Tlist " Toggle tag list " nnoremap :TlistToggle " Tagbar options let g:tagbar_autofocus = 1 let g:tagbar_left = 1 let g:tagbar_zoomwidth = 0 let g:tagbar_autofocus = 1 " open Tagbar automatically when viewing a supported file/files autocmd VimEnter * nested :call tagbar#autoopen(1) " Toggle Tagbar nnoremap :TagbarToggle " }}} "{{{ ***** VIM FEATURES ***** " " allow project-specific .vimrc files set exrc set secure " allow the use of a modeline set modeline " automatically read a file if it changes outside of vim set autoread " turn ruler on set ruler " set incremental search set hlsearch set incsearch " set status line always on set laststatus=2 "turn omnicomplete on filetype plugin on set omnifunc=syntaxcomplete#Complete " }}} "{{{ ***** VISUALS ***** " " set number set number set relativenumber set foldmethod=syntax set foldcolumn=3 set expandtab set shiftwidth=4 set softtabstop=4 set autoindent set smartindent set cindent filetype plugin indent on "colorscheme carvedwoodcool colorscheme wombat256 "colorscheme devbox-dark-256 "set background=light "colorscheme solarized syntax on set showcmd "}}} "{{{ ***** KEY MAPPINGS ***** " " make backspace work set backspace=eol,start,indent set whichwrap+=<,>,h,l set whichwrap+=<,>,h,l set pastetoggle= nmap :mks! nnoremap :MakeRelease nnoremap :MakeDebug nnoremap :so ~/.vimrc " look up things in opengrok noremap K :call OpenGrok() " treat wrapped lines as multiple lines when navigating map j gj map k gk " Smart way to move between windows map j map k map h map l " }}} "{{{ ***** PROJECTS ***** " " set default project options set makeprg=rfds command! -nargs=* MakeRelease Make build release command! -nargs=* MakeDebug Make build debug " }}} "{{{ ***** FUNCTIONS ***** " " open OpenGrok in midori function! OpenGrok() :!midori http://opengrok.factset.com/source/search?defs=&project=%2Fonline%2Fmakefds endfunction " }}} "{{{ ***** COMMANDS ***** " " make todo list command! -nargs=* -complete=file Todos vimgrep /asdf:/gj *|cw "Wrapper for make sequence command! -nargs=* Make execute '!clear' | make! | cw " }}}