.vimrc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. set nocompatible " be iMproved, required
  2. filetype off " required
  3. " set the runtime path to include Vundle and initialize
  4. set rtp+=~/.vim/bundle/Vundle.vim
  5. call vundle#begin()
  6. " Keep Plugin commands between vundle#begin/end.
  7. Plugin 'VundleVim/Vundle.vim'
  8. " Git wrapper
  9. Plugin 'tpope/vim-fugitive'
  10. " status/tabline
  11. Plugin 'vim-airline/vim-airline'
  12. Plugin 'vim-airline/vim-airline-themes'
  13. " base16 color scheme
  14. "Plugin 'chriskempson/base16-vim'
  15. Plugin 'dracula/vim', { 'name': 'dracula' }
  16. " gruvbox color scheme
  17. " https://github.com/morhetz/gruvbox/wiki/Installation
  18. "Plugin 'morhetz/gruvbox'
  19. " All of your Plugins must be added before the following line
  20. call vundle#end() " required
  21. filetype plugin indent on " required
  22. " To ignore plugin indent changes, instead use:
  23. "filetype plugin on
  24. "
  25. " Brief help
  26. " :PluginList - lists configured plugins
  27. " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
  28. " :PluginSearch foo - searches for foo; append `!` to refresh local cache
  29. " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
  30. " :PluginUpdate - Updates plugins
  31. "
  32. " see :h vundle for more details or wiki for FAQ
  33. " Put your non-Plugin stuff after this line
  34. " airline theme
  35. "let g:airline_theme='violet'
  36. "let g:airline_theme='gruvbox'
  37. let g:airline_theme='dracula'
  38. set t_Co=256
  39. "colorscheme base16-codeschool
  40. "colorscheme base16-atelier-dune-light
  41. "colorscheme base16-darktooth
  42. "colorscheme gruvbox
  43. "colorscheme dracula
  44. colorscheme industry
  45. syntax on
  46. " enable vim modelines
  47. set modeline
  48. set tabstop=2 shiftwidth=2 expandtab
  49. set background=light
  50. set showcmd
  51. " highlight searches
  52. set hlsearch
  53. " case insensitive searches
  54. set incsearch
  55. " Putty reg file: https://github.com/benjojo/base-16-putty
  56. " iTerm2: https://github.com/martinlindhe/base16-iterm2
  57. " Highlight 80 column
  58. set colorcolumn=80,120
  59. highlight ColorColumn ctermbg=238
  60. " Highlight additional flags in comments
  61. augroup vimrc_todo
  62. au!
  63. au Syntax * syn match MyTodo /\v<(FIXME|NOTE|TODO|OPTIMIZE|XXX|INFO|IDEA|CHANGED|BUG|HACK|TRICKY):/
  64. \ containedin=.*Comment,vimCommentTitle
  65. augroup END
  66. hi def link MyTodo Todo