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.

99 lines
1.8 KiB

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