.vimrc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. " wreed vimrc
  2. " vim: set foldmethod=marker:
  3. "{{{ ***** PLUGINS ***** "
  4. " Pathogen
  5. call pathogen#infect()
  6. call pathogen#helptags()
  7. " PyMode options
  8. let pymode_lint_ignore="E501,E401,E225,W191,W391,W404"
  9. " use rope code assist instead of a complete function
  10. " au FileType python inoremap <expr> <S-Space> '<C-r>=RopeCodeAssistInsertMode()<CR><C-r>=pumvisible() ? "\<lt>C-p>\<lt>Down>" : ""<CR>'
  11. " }}}
  12. "{{{ ***** VIM FEATURES ***** "
  13. " allow project-specific .vimrc files
  14. set exrc
  15. set secure
  16. " allow the use of a modeline
  17. set modeline
  18. " automatically read a file if it changes outside of vim
  19. set autoread
  20. " turn ruler on
  21. set ruler
  22. " set incremental search
  23. set incsearch
  24. " set status line always on
  25. set laststatus=2
  26. " }}}
  27. "{{{ ***** VISUALS ***** "
  28. " set number
  29. set relativenumber
  30. set foldmethod=syntax
  31. set foldcolumn=3
  32. set expandtab
  33. set shiftwidth=4
  34. set softtabstop=4
  35. set autoindent
  36. set smartindent
  37. set cindent
  38. filetype plugin indent on
  39. colorscheme carvedwoodcool
  40. syntax on
  41. set showcmd
  42. "}}}
  43. "{{{ ***** KEY MAPPINGS ***** "
  44. " make backspace work
  45. set backspace=eol,start,indent
  46. set whichwrap+=<,>,h,l
  47. set whichwrap+=<,>,h,l
  48. set pastetoggle=<F2>
  49. nmap <F12> :mks!<CR>
  50. nnoremap <F3> :!rakefds build release && source X86_64/environment.sh<CR>
  51. nnoremap <F4> :!rakefds build debug && source X86_64/environment.sh<CR>
  52. " look up things in opengrok
  53. noremap <leader>K :!elinks http://opengrok.factset.com/source/search?defs=<cword>&project=%2Fonline%2Fmakefds<CR>
  54. " treat wrapped lines as multiple lines when navigating
  55. map j gj
  56. map k gk
  57. " Smart way to move between windows
  58. map <C-j> <C-W>j
  59. map <C-k> <C-W>k
  60. map <C-h> <C-W>h
  61. map <C-l> <C-W>l
  62. " }}}
  63. "{{{ ***** PROJECTS ***** "
  64. " set default project options
  65. "set makeprg=rakefds
  66. " }}}