Old version(s) of vim config
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

66 lines
1.8 KiB

14 years ago
14 years ago
14 years ago
14 years ago
  1. filetype off
  2. call pathogen#runtime_append_all_bundles()
  3. filetype plugin indent on
  4. syntax enable
  5. " Set defaults [:h Q_op for abbrs]
  6. set nocompatible
  7. set ai et sw=2 ts=2 sts=2 " auto indent, 2 space tabs
  8. set ch=2 so=3 ls=2 " commandline, scrolloff, laststatus
  9. set dir=/var/tmp,/tmp " dir for swapfile
  10. set nofoldenable " turn off folding
  11. set splitbelow splitright " new window placement
  12. set list listchars=tab:»·,trail
  13. set statusline=%<%f\ %h%m%r\ %y\ %{fugitive#statusline()}%=%-16(\ %l,%c-%v\ %)%P
  14. " Enable 256 color xterm support
  15. au VimEnter * if &term == 'xterm' | set t_Co=256 | endif
  16. colorscheme wombat256mod
  17. if has("gui_running")
  18. set guifont=Monospace\ 10
  19. set cursorline
  20. set go=aegitt
  21. set co=102
  22. set lines=35
  23. " Map Alt-keys for fontsize
  24. nmap <M-+> <Plug>FontsizeInc
  25. nmap <M-=> <Plug>FontsizeInc
  26. nmap <M--> <Plug>FontsizeDec
  27. nmap <M-0> <Plug>FontsizeDefault
  28. " GUI only color scheme
  29. colorscheme mayansmoke
  30. endif
  31. " Settings for tpope's surround plugin
  32. let g:surround_45 = "<% \r -%>"
  33. let g:surround_61 = "<%= \r %>"
  34. autocmd FileType php let b:surround_45 = "<?php \r ?>"
  35. " Settings for rails plugin
  36. let g:rails_default_file='config/database.yml'
  37. autocmd User Rails silent! Rlcd
  38. " NERDTree settings
  39. map <silent> <M-d> :execute 'NERDTreeToggle'<CR>
  40. " Session plugin settings
  41. let g:session_autosave = 1
  42. let g:session_autoload = 1
  43. " Set filetype for nginx confs
  44. au BufRead,BufNewFile /usr/local/conf/* set ft=nginx
  45. " XPTemplate setings
  46. let g:xptemplate_vars = 'author=J.Infield&email=jinfield@gmail.com&SParg='
  47. let g:xptemplate_bundle = 'avascript_jquery'
  48. " Misc mappings
  49. map <silent> <M-c> :lcd %:p:h <CR> " change to cwd of current file
  50. imap <C-Enter> <Down>
  51. imap <C-BS> <C-o>cc
  52. imap <M-o> <CR><CR><Up><Space><Space>
  53. imap <silent> <M-j> <C-o>J
  54. map <F1> <Esc>
  55. imap <F1> <Esc>