irenicus09

Vim Config

Jul 31st, 2015
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 3.09 KB | None | 0 0
  1. " Setting tab width to 4
  2. set tabstop=4
  3.  
  4. " Turning on Line numbers
  5. set number
  6.  
  7. " This is required to enable vim plugin Airline tabs
  8. " to be shown all the time
  9. set laststatus=2
  10.  
  11. " Turning on syntax highlighting
  12. syntax on
  13.  
  14. " For solarized theme, make sure it's installed first
  15. " Make sure you also setup solarized theme for your terminal
  16. set background=dark
  17.  
  18. " For improved readability consider manually installing
  19. " custom fonts from this repo:
  20. " https://github.com/powerline/fonts
  21.  
  22. " favourite fonts: monofur for powerline regular 10,
  23. " source code pro for powerline medium 9
  24.  
  25. " Note that powerline fonts above are required for plugin airline
  26.  
  27.  
  28.  
  29. set nocompatible              " be iMproved, required
  30. filetype off                  " required
  31.  
  32. " Enabling blowfish2 crypto for encrypted vim files
  33. " Encryption of a file is done by typing :X
  34. setlocal cm=blowfish2
  35.  
  36. " set the runtime path to include Vundle and initialize
  37. set rtp+=~/.vim/bundle/Vundle.vim
  38. call vundle#begin()
  39. " alternatively, pass a path where Vundle should install plugins
  40. "call vundle#begin('~/some/path/here')
  41.  
  42. " let Vundle manage Vundle, required
  43. Plugin 'gmarik/Vundle.vim'
  44.  
  45.  
  46. Plugin 'Valloric/YouCompleteMe'
  47. " Required for clang autocomplete to work with YouCompleteMe plugin.
  48. " Place that file on home directory
  49. let g:ycm_global_ycm_extra_conf = '~/.ycm_global_ycm_extra_conf'
  50.  
  51.  
  52. Plugin 'bling/vim-airline'
  53. let g:airline#extensions#tabline#enabled = 1
  54. let g:airline_theme = 'molokai'
  55. let g:airline_powerline_fonts = 1
  56.  
  57. "Track the engine.
  58. Plugin 'SirVer/ultisnips'
  59.  
  60. " Snippets are separated from the engine. Add this if you want them:
  61. Plugin 'honza/vim-snippets'
  62.  
  63. " Trigger configuration. Do not use <tab> if you use
  64. "https://github.com/Valloric/YouCompleteMe.
  65. let g:UltiSnipsExpandTrigger="<c-k>"
  66. let g:UltiSnipsJumpForwardTrigger="<c-b>"
  67. let g:UltiSnipsJumpBackwardTrigger="<c-z>"
  68. let g:UltiSnipsUsePythonVersion = 2
  69. " If you want :UltiSnipsEdit to split your window.
  70. let g:UltiSnipsEditSplit="vertical"
  71. let g:UltiSnipsListSnippets="<c-d>"
  72.  
  73. " Color schemes for vim
  74. " Current favorite Monokai with molokai
  75. Plugin 'flazz/vim-colorschemes'
  76.  
  77. " All of your Plugins must be added before the following line
  78. call vundle#end()            " required
  79. filetype plugin indent on    " required
  80.  
  81.  
  82. " Mapping tab switch keys changed due to Airline
  83. map <C-Left> <Esc>:bprev<CR>
  84. map <C-Right> <Esc>:bnext<CR>
  85. map <C-Down> <Esc>:bdelete<CR>
  86.  
  87.  
  88. colorscheme Monokai
  89.  
  90. " For further vim extensability go through this page for useful plugin list for c/c++:
  91. " http://stackoverflow.com/questions/4237817/help-with-configuring-vim-for-c
  92.  
  93.  
  94.  
  95.  
  96. " To ignore plugin indent changes, instead use:
  97. "filetype plugin on
  98. "
  99. " Brief help
  100. " :PluginList       - lists configured plugins
  101. " :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
  102. " :PluginSearch foo - searches for foo; append `!` to refresh local cache
  103. " :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
  104. "
  105. " see :h vundle for more details or wiki for FAQ
  106. " Put your non-Plugin stuff after this line
Advertisement
Add Comment
Please, Sign In to add comment