Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible " be iMproved, required
- filetype off " required
- " set the runtime path to include Vundle and initialize
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- " alternatively, pass a path where Vundle should install plugins
- "call vundle#begin('~/some/path/here')
- " let Vundle manage Vundle, required
- Plugin 'VundleVim/Vundle.vim'
- " The following are examples of different formats supported.
- " Keep Plugin commands between vundle#begin/end.
- " plugin on GitHub repo
- " Plugin 'tpope/vim-fugitive'
- " plugin from http://vim-scripts.org/vim/scripts.html
- " Plugin 'L9'
- " Git plugin not hosted on GitHub
- " Plugin 'git://git.wincent.com/command-t.git'
- " git repos on your local machine (i.e. when working on your own plugin)
- " Plugin 'file:///home/gmarik/path/to/plugin'
- " The sparkup vim script is in a subdirectory of this repo called vim.
- " Pass the path to set the runtimepath properly.
- " Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
- " Avoid a name conflict with L9
- " Plugin 'user/L9', {'name': 'newL9'}
- " Plugins
- Plugin 'jansenm/vim-cmake'
- Plugin 'Valloric/YouCompleteMe'
- Plugin 'rdnetto/YCM-Generator'
- Plugin 'scrooloose/nerdtree'
- Plugin 'Xuyuanp/nerdtree-git-plugin'
- Plugin 'jistr/vim-nerdtree-tabs'
- Plugin 'vim-scripts/ASL'
- Plugin 'majutsushi/tagbar'
- Plugin 'airblade/vim-gitgutter'
- Plugin 'tpope/vim-fugitive'
- Plugin 'xolox/vim-session'
- Plugin 'xolox/vim-misc'
- Plugin 'vim-airline/vim-airline'
- Plugin 'vim-airline/vim-airline-themes'
- Plugin 'edkolev/tmuxline.vim'
- Plugin 'jalcine/cmake.vim'
- Plugin 'lervag/vimtex'
- Plugin 'wesQ3/vim-windowswap'
- Plugin 'jeaye/color_coded'
- Plugin 'LucHermitte/lh-vim-lib'
- Plugin 'LucHermitte/lh-tags'
- Plugin 'LucHermitte/lh-dev'
- Plugin 'LucHermitte/lh-brackets'
- Plugin 'LucHermitte/searchInRuntime'
- Plugin 'LucHermitte/mu-template'
- Plugin 'tomtom/stakeholders_vim'
- Plugin 'LucHermitte/lh-cpp'
- Plugin 'LucHermitte/lh-cmake'
- Plugin 'LucHermitte/vim-refactor'
- Plugin 'LucHermitte/vim-build-tools-wrapper'
- " All of your Plugins must be added before the following line
- call vundle#end() " required
- filetype plugin indent on " required
- " To ignore plugin indent changes, instead use:
- "filetype plugin on
- "
- " Brief help
- " :PluginList - lists configured plugins
- " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
- " :PluginSearch foo - searches for foo; append `!` to refresh local cache
- " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
- "
- " see :h vundle for more details or wiki for FAQ
- " Put your non-Plugin stuff after this line
- set exrc
- set secure
- colorscheme twilight
- set textwidth=80
- set guifont=Menlo:h16
- set expandtab
- set ts=4
- set shiftwidth=4
- set autoindent
- set smartindent
- set backspace=indent,eol,start
- set encoding=utf-8
- set cursorline
- set cursorcolumn
- syntax on
- set number
- set noshowmode
- let &colorcolumn=&textwidth
- highlight ColorColumn ctermbg=darkgray
- set ic
- set hls
- set is
- set wildmenu
- set wildmode=list:longest
- set fileencoding=utf-8
- if has("gui_running")
- let s:uname = system("uname")
- if s:uname == "Darwin\n"
- set guifont=Menlo\ for\ Powerline:h16
- set macmeta
- endif
- endif
- set guioptions-=r
- set guioptions-=L
- autocmd filetype c,cpp,h,hpp,m,mm set cin
- augroup project
- autocmd!
- autocmd BufRead,BufNewFile *.h,*.c set filetype=c.doxygen
- augroup END
- augroup myvimrc
- au!
- au BufWritePost .vimrc,_vimrc,vimrc so $MYVIMRC | if has('gui_running') | so $MYVIMRC | endif
- augroup END
- " color_coded
- let g:color_coded_enabled = 1
- if &diff
- let g:color_coded_enabled = 0
- endif
- " YouCompleteMe
- let g:ycm_python_binary_path = '/opt/local/bin/python'
- let g:ycm_echo_current_diagnostic = 1
- let g:ycm_add_preview_to_completeopt = 0
- let g:ycm_autoclose_preview_window_after_completion = 0
- let g:ycm_autoclose_preview_window_after_insertion = 1
- let g:ycm_goto_buffer_command = 'new-tab'
- let g:ycm_filetype_blacklist = {
- \ 'tagbar' : 1,
- \ 'qf' : 1,
- \ 'notes' : 1,
- \ 'markdown' : 1,
- \ 'unite' : 1,
- \ 'text' : 1,
- \ 'vimwiki' : 1,
- \ 'pandoc' : 1,
- \ 'infolog' : 1,
- \ 'mail' : 1
- \}
- " NERDTree
- " autocmd StdinReadPre * let s:std_in=1
- " autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
- " let NERDTreeHijackNetrw=1
- " let NERDTreeShowHidden=1
- " vim-session
- let g:session_autosave = 'yes'
- let g:session_autoload = 'yes'
- " vim-airline
- set laststatus=2
- let g:airline_theme = 'base16_twilight'
- let g:airline_powerline_fonts = 1
- let g:airline#extensions#tabline#enabled = 0
- let g:airline#extensions#eclim#enabled = 1
- let g:airline#extensions#tmuxline#enabled = 0
- let g:airline#extensions#syntastic#enabled = 1
- let g:airline#extensions#tagbar#enabled = 1
- " Tagbar
- let g:tagbar_autofocus = 1
- let g:tagbar_compact = 0
- let g:tagbar_type_make = {
- \ 'kinds':[
- \ 'm:macros',
- \ 't:targets'
- \ ]
- \}
- let g:tagbar_type_objc = {
- \ 'ctagstype' : 'ObjectiveC',
- \ 'kinds' : [
- \ 'i:interface',
- \ 'I:implementation',
- \ 'p:Protocol',
- \ 'm:Object_method',
- \ 'c:Class_method',
- \ 'v:Global_variable',
- \ 'F:Object field',
- \ 'f:function',
- \ 'p:property',
- \ 't:type_alias',
- \ 's:type_structure',
- \ 'e:enumeration',
- \ 'M:preprocessor_macro',
- \ ],
- \ 'sro' : ' ',
- \ 'kind2scope' : {
- \ 'i' : 'interface',
- \ 'I' : 'implementation',
- \ 'p' : 'Protocol',
- \ 's' : 'type_structure',
- \ 'e' : 'enumeration'
- \ },
- \ 'scope2kind' : {
- \ 'interface' : 'i',
- \ 'implementation' : 'I',
- \ 'Protocol' : 'p',
- \ 'type_structure' : 's',
- \ 'enumeration' : 'e'
- \ }
- \ }
- if has('gui_running')
- map <D-2> :TagbarToggle<CR>
- endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement