The aptly named.
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.

104 lines
1.8 KiB

10 years ago
11 years ago
10 years ago
10 years ago
11 years ago
10 years ago
11 years ago
10 years ago
11 years ago
10 years ago
10 years ago
10 years ago
  1. set shell=/bin/bash
  2. set nocompatible
  3. set laststatus=2
  4. set encoding=utf-8
  5. filetype off
  6. " autocmd
  7. if has("autocmd")
  8. " enable file type detection
  9. "filetype on
  10. filetype indent on
  11. filetype plugin on
  12. set ofu=syntaxcomplete#Complete
  13. endif
  14. " basic options
  15. syntax on
  16. set number
  17. set nowrap
  18. set autoindent
  19. set backspace=indent,eol,start
  20. set complete-=i
  21. set showmatch
  22. set smarttab
  23. set incsearch
  24. set ruler
  25. set showcmd
  26. set wildmenu
  27. set foldmethod=indent
  28. set foldcolumn=1
  29. if !&scrolloff
  30. set scrolloff=1
  31. endif
  32. if !&sidescrolloff
  33. set sidescrolloff=5
  34. endif
  35. set display+=lastline
  36. " spaces not tabs, etc
  37. set tabstop=8
  38. set softtabstop=4
  39. set shiftwidth=4
  40. set expandtab
  41. " show invisible characters
  42. nmap <leader>l :set list!<CR>
  43. set listchars=tab:▸\ ,eol
  44. " multi-file
  45. set hidden
  46. " shortcut to silently run commands
  47. command -nargs=1 Run <bar>execute ':silent !'.<q-args> <bar>execute ':redraw!'
  48. map <up> <nop>
  49. map <down> <nop>
  50. map <left> <nop>
  51. map <right> <nop>
  52. imap <up> <nop>
  53. imap <down> <nop>
  54. imap <left> <nop>
  55. imap <right> <nop>
  56. " lets setup vundle
  57. set rtp+=~/.vim/bundle/vundle/
  58. call vundle#rc()
  59. " vundle bundles
  60. Bundle 'gmarik/vundle'
  61. " bundles on github
  62. Bundle 'fholgado/minibufexpl.vim.git'
  63. Bundle 'Lokaltog/vim-powerline.git'
  64. Bundle 'Lokaltog/vim-distinguished.git'
  65. Bundle 'scrooloose/nerdtree.git'
  66. Bundle 'ervandew/supertab.git'
  67. Bundle 'myusuf3/numbers.vim.git'
  68. " toggle showing nerd-tree
  69. :nmap <leader>e :NERDTreeToggle<CR>
  70. " end tags with a key
  71. imap ,/ </<C-X><C-O>
  72. " xml validation
  73. :nmap <leader>; :%w !xmllint --valid --noout -
  74. " toggle line wrap
  75. :nmap <leader>w :setlocal wrap!<CR>:setlocal wrap?<CR>
  76. " dem fancy colors
  77. set t_Co=256
  78. "colorscheme ir_black " for macvim
  79. colorscheme distinguished
  80. " force django templates to use html syntax
  81. au BufNewFile,BufRead *.djhtml set filetype=html
  82. " sudo save
  83. cmap w!! w !sudo tee % >/dev/null