.vimrc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. set pastetoggle=<F2>
  45. nmap <F12> :mks!
  46. nmap <F4> :make!
  47. " treat wrapped lines as multiple lines when navigating
  48. map j gj
  49. map k gk
  50. " Smart way to move between windows
  51. map <C-j> <C-W>j
  52. map <C-k> <C-W>k
  53. map <C-h> <C-W>h
  54. map <C-l> <C-W>l
  55. " }}}
  56. "{{{ ***** PROJECTS ***** "
  57. " set default project options
  58. set makeprg=rakefds
  59. " }}}