.vimrc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. set nocompatible "Needed by Vundle
  2. filetype off "Needed by Vundle
  3. set rtp+=~/.vim/bundle/Vundle.vim "Add Vundle to runtime path
  4. call vundle#begin()
  5. Plugin 'VundleVim/Vundle.vim' "Vundle
  6. Plugin 'vim-airline/vim-airline' "Cool statusline
  7. Plugin 'vim-airline/vim-airline-themes' "Airline themes
  8. Plugin 'ludovicchabant/vim-gutentags' "ctag management
  9. Plugin 'scrooloose/syntastic' "Syntax checker
  10. Plugin 'tpope/vim-fugitive' "Useful git commands
  11. Plugin 'altercation/vim-colors-solarized' "Solarized theme
  12. Plugin 'https://notabug.org/SylvieLorxu/vim-betterK.git' "Improve K command
  13. Plugin 'https://notabug.org/SylvieLorxu/vim-friendlyremark.git' "Friendly remark
  14. call vundle#end()
  15. "Hide startup message
  16. set shortmess+=I
  17. "Store backups together
  18. set directory=~/.vim/backups//
  19. "Keep undo history between sessions
  20. set undofile
  21. set undodir=~/.vim/undo/
  22. "Incremental search
  23. set incsearch
  24. "Autoindent with tab being 4 spaces
  25. set autoindent
  26. set tabstop=4
  27. set expandtab
  28. "[airline] Always show list of buffers
  29. let g:airline#extensions#tabline#enabled=1
  30. let g:airline#extensions#tabline#buffer_nr_show = 1
  31. "[airline] Show bottom line always, hide vim mode
  32. set laststatus=2
  33. set noshowmode
  34. "[airline] Remove pause after leaving insert mode
  35. set timeoutlen=50
  36. "Background buffers (no force saving when switching)
  37. set hidden
  38. "[gutentags] Don't pollute project dirs
  39. let g:gutentags_cache_dir = '~/.vim/tags/'
  40. "Theming
  41. syntax enable
  42. let g:airline_powerline_fonts=1 "Requires powerline fonts!
  43. set cursorline
  44. set background=dark
  45. colorscheme solarized
  46. "Nicer tab completion (easier file selection)
  47. set wildmenu
  48. set wildmode=longest,list
  49. "Friendly startup messages
  50. autocmd VimEnter * FriendlyRemark