.vimrc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. nmap <F4> :make!<CR>
  51. " treat wrapped lines as multiple lines when navigating
  52. map j gj
  53. map k gk
  54. " Smart way to move between windows
  55. map <C-j> <C-W>j
  56. map <C-k> <C-W>k
  57. map <C-h> <C-W>h
  58. map <C-l> <C-W>l
  59. " }}}
  60. "{{{ ***** PROJECTS ***** "
  61. " set default project options
  62. set makeprg=rakefds
  63. " }}}