Advertisement
Guest User

Untitled

a guest
May 17th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.22 KB | None | 0 0
  1. set nocompatible " be iMproved, required
  2. filetype off " required
  3.  
  4. " set the runtime path to include Vundle and initialize
  5. set rtp+=~/.vim/bundle/Vundle.vim
  6. call vundle#begin()
  7. " alternatively, pass a path where Vundle should install plugins
  8. "call vundle#begin('~/some/path/here')
  9.  
  10. " let Vundle manage Vundle, required
  11. Plugin 'VundleVim/Vundle.vim'
  12.  
  13.  
  14. " The following are examples of different formats supported.
  15. " Keep Plugin commands between vundle#begin/end.
  16. " plugin on GitHub repo
  17. " Plugin 'tpope/vim-fugitive'
  18. " plugin from http://vim-scripts.org/vim/scripts.html
  19. " Plugin 'L9'
  20. " Git plugin not hosted on GitHub
  21. " Plugin 'git://git.wincent.com/command-t.git'
  22. " git repos on your local machine (i.e. when working on your own plugin)
  23. " Plugin 'file:///home/gmarik/path/to/plugin'
  24. " The sparkup vim script is in a subdirectory of this repo called vim.
  25. " Pass the path to set the runtimepath properly.
  26. " Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
  27. " Avoid a name conflict with L9
  28. " Plugin 'user/L9', {'name': 'newL9'}
  29.  
  30. " Plugins
  31. Plugin 'jansenm/vim-cmake'
  32. Plugin 'Valloric/YouCompleteMe'
  33. Plugin 'rdnetto/YCM-Generator'
  34. Plugin 'scrooloose/nerdtree'
  35. Plugin 'Xuyuanp/nerdtree-git-plugin'
  36. Plugin 'jistr/vim-nerdtree-tabs'
  37. Plugin 'vim-scripts/ASL'
  38. Plugin 'majutsushi/tagbar'
  39. Plugin 'airblade/vim-gitgutter'
  40. Plugin 'tpope/vim-fugitive'
  41. Plugin 'xolox/vim-session'
  42. Plugin 'xolox/vim-misc'
  43. Plugin 'vim-airline/vim-airline'
  44. Plugin 'vim-airline/vim-airline-themes'
  45. Plugin 'edkolev/tmuxline.vim'
  46. Plugin 'jalcine/cmake.vim'
  47. Plugin 'lervag/vimtex'
  48. Plugin 'wesQ3/vim-windowswap'
  49. Plugin 'jeaye/color_coded'
  50.  
  51. Plugin 'LucHermitte/lh-vim-lib'
  52. Plugin 'LucHermitte/lh-tags'
  53. Plugin 'LucHermitte/lh-dev'
  54. Plugin 'LucHermitte/lh-brackets'
  55. Plugin 'LucHermitte/searchInRuntime'
  56. Plugin 'LucHermitte/mu-template'
  57. Plugin 'tomtom/stakeholders_vim'
  58. Plugin 'LucHermitte/lh-cpp'
  59. Plugin 'LucHermitte/lh-cmake'
  60. Plugin 'LucHermitte/vim-refactor'
  61. Plugin 'LucHermitte/vim-build-tools-wrapper'
  62.  
  63. " All of your Plugins must be added before the following line
  64. call vundle#end() " required
  65. filetype plugin indent on " required
  66. " To ignore plugin indent changes, instead use:
  67. "filetype plugin on
  68. "
  69. " Brief help
  70. " :PluginList - lists configured plugins
  71. " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
  72. " :PluginSearch foo - searches for foo; append `!` to refresh local cache
  73. " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
  74. "
  75. " see :h vundle for more details or wiki for FAQ
  76. " Put your non-Plugin stuff after this line
  77.  
  78. set exrc
  79. set secure
  80.  
  81. colorscheme twilight
  82.  
  83. set textwidth=80
  84. set guifont=Menlo:h16
  85. set expandtab
  86. set ts=4
  87. set shiftwidth=4
  88. set autoindent
  89. set smartindent
  90. set backspace=indent,eol,start
  91. set encoding=utf-8
  92. set cursorline
  93. set cursorcolumn
  94. syntax on
  95. set number
  96. set noshowmode
  97.  
  98. let &colorcolumn=&textwidth
  99. highlight ColorColumn ctermbg=darkgray
  100.  
  101. set ic
  102. set hls
  103. set is
  104.  
  105. set wildmenu
  106. set wildmode=list:longest
  107.  
  108. set fileencoding=utf-8
  109.  
  110. if has("gui_running")
  111. let s:uname = system("uname")
  112. if s:uname == "Darwin\n"
  113. set guifont=Menlo\ for\ Powerline:h16
  114. set macmeta
  115. endif
  116. endif
  117.  
  118. set guioptions-=r
  119. set guioptions-=L
  120.  
  121. autocmd filetype c,cpp,h,hpp,m,mm set cin
  122. augroup project
  123. autocmd!
  124. autocmd BufRead,BufNewFile *.h,*.c set filetype=c.doxygen
  125. augroup END
  126.  
  127. augroup myvimrc
  128. au!
  129. au BufWritePost .vimrc,_vimrc,vimrc so $MYVIMRC | if has('gui_running') | so $MYVIMRC | endif
  130. augroup END
  131.  
  132. " color_coded
  133.  
  134. let g:color_coded_enabled = 1
  135.  
  136. if &diff
  137. let g:color_coded_enabled = 0
  138. endif
  139.  
  140. " YouCompleteMe
  141.  
  142. let g:ycm_python_binary_path = '/opt/local/bin/python'
  143. let g:ycm_echo_current_diagnostic = 1
  144. let g:ycm_add_preview_to_completeopt = 0
  145. let g:ycm_autoclose_preview_window_after_completion = 0
  146. let g:ycm_autoclose_preview_window_after_insertion = 1
  147. let g:ycm_goto_buffer_command = 'new-tab'
  148.  
  149. let g:ycm_filetype_blacklist = {
  150. \ 'tagbar' : 1,
  151. \ 'qf' : 1,
  152. \ 'notes' : 1,
  153. \ 'markdown' : 1,
  154. \ 'unite' : 1,
  155. \ 'text' : 1,
  156. \ 'vimwiki' : 1,
  157. \ 'pandoc' : 1,
  158. \ 'infolog' : 1,
  159. \ 'mail' : 1
  160. \}
  161.  
  162. " NERDTree
  163.  
  164. " autocmd StdinReadPre * let s:std_in=1
  165. " autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
  166.  
  167. " let NERDTreeHijackNetrw=1
  168. " let NERDTreeShowHidden=1
  169.  
  170. " vim-session
  171.  
  172. let g:session_autosave = 'yes'
  173. let g:session_autoload = 'yes'
  174.  
  175. " vim-airline
  176.  
  177. set laststatus=2
  178.  
  179. let g:airline_theme = 'base16_twilight'
  180. let g:airline_powerline_fonts = 1
  181. let g:airline#extensions#tabline#enabled = 0
  182. let g:airline#extensions#eclim#enabled = 1
  183. let g:airline#extensions#tmuxline#enabled = 0
  184. let g:airline#extensions#syntastic#enabled = 1
  185. let g:airline#extensions#tagbar#enabled = 1
  186.  
  187. " Tagbar
  188.  
  189. let g:tagbar_autofocus = 1
  190. let g:tagbar_compact = 0
  191.  
  192. let g:tagbar_type_make = {
  193. \ 'kinds':[
  194. \ 'm:macros',
  195. \ 't:targets'
  196. \ ]
  197. \}
  198.  
  199. let g:tagbar_type_objc = {
  200. \ 'ctagstype' : 'ObjectiveC',
  201. \ 'kinds' : [
  202. \ 'i:interface',
  203. \ 'I:implementation',
  204. \ 'p:Protocol',
  205. \ 'm:Object_method',
  206. \ 'c:Class_method',
  207. \ 'v:Global_variable',
  208. \ 'F:Object field',
  209. \ 'f:function',
  210. \ 'p:property',
  211. \ 't:type_alias',
  212. \ 's:type_structure',
  213. \ 'e:enumeration',
  214. \ 'M:preprocessor_macro',
  215. \ ],
  216. \ 'sro' : ' ',
  217. \ 'kind2scope' : {
  218. \ 'i' : 'interface',
  219. \ 'I' : 'implementation',
  220. \ 'p' : 'Protocol',
  221. \ 's' : 'type_structure',
  222. \ 'e' : 'enumeration'
  223. \ },
  224. \ 'scope2kind' : {
  225. \ 'interface' : 'i',
  226. \ 'implementation' : 'I',
  227. \ 'Protocol' : 'p',
  228. \ 'type_structure' : 's',
  229. \ 'enumeration' : 'e'
  230. \ }
  231. \ }
  232.  
  233. if has('gui_running')
  234. map <D-2> :TagbarToggle<CR>
  235. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement