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.

73 lines
1.4 KiB

12 years ago
12 years ago
  1. set nocompatible
  2. set laststatus=2
  3. set encoding=utf-8
  4. filetype off
  5. " autocmd
  6. if has("autocmd")
  7. " enable file type detection
  8. "filetype on
  9. filetype indent on
  10. filetype plugin on
  11. set ofu=syntaxcomplete#Complete
  12. autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
  13. endif
  14. " basic options
  15. syntax on
  16. set number
  17. set nowrap
  18. set autoindent
  19. " spaces not tabs, etc
  20. set tabstop=8
  21. set softtabstop=4
  22. set shiftwidth=4
  23. set expandtab
  24. " show invisible characters
  25. nmap <leader>l :set list!<CR>
  26. set listchars=tab:▸\ ,eol
  27. " multi-file
  28. set hidden
  29. " shortcut to silently run commands
  30. command -nargs=1 Run <bar>execute ':silent !'.<q-args> <bar>execute ':redraw!'
  31. map <up> <nop>
  32. map <down> <nop>
  33. map <left> <nop>
  34. map <right> <nop>
  35. imap <up> <nop>
  36. imap <down> <nop>
  37. imap <left> <nop>
  38. imap <right> <nop>
  39. " lets setup vundle
  40. set rtp+=~/.vim/bundle/vundle/
  41. call vundle#rc()
  42. " vundle bundles
  43. Bundle 'gmarik/vundle'
  44. " bundles on github
  45. Bundle 'fholgado/minibufexpl.vim.git'
  46. Bundle 'Lokaltog/vim-powerline.git'
  47. Bundle 'Lokaltog/vim-distinguished.git'
  48. Bundle 'scrooloose/nerdtree.git'
  49. Bundle 'ervandew/supertab.git'
  50. " toggle showing nerd-tree
  51. :nmap <leader>e :NERDTreeToggle<CR>
  52. " end tags with a key
  53. imap ,/ </<C-X><C-O>
  54. " toggle line wrap
  55. :nmap <leader>w :setlocal wrap!<CR>:setlocal wrap?<CR>
  56. " dem fancy colors
  57. set t_Co=256
  58. colorscheme distinguished