Cleaned up vundle file; replaced gd with :YcmCompleter GoToDefinition
This commit is contained in:
parent
d1c2194ee5
commit
cbef449388
@ -1,52 +1,44 @@
|
|||||||
set nocompatible " be iMproved, required
|
" ===================================================================================
|
||||||
filetype off " required
|
" === VUNDLE SETTINGS ===============================================================
|
||||||
|
" ===================================================================================
|
||||||
|
set nocompatible
|
||||||
|
filetype off
|
||||||
|
|
||||||
" set the runtime path to include Vundle and initialize
|
|
||||||
set rtp+=~/.vim/bundle/Vundle.vim
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
call vundle#begin()
|
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'
|
Plugin 'VundleVim/Vundle.vim'
|
||||||
|
|
||||||
" <======================================================>
|
" <======================================================>
|
||||||
" <==== Insert plugins here =============================>
|
" <==== Insert plugins here =============================>
|
||||||
" command-t (
|
|
||||||
" Plugin 'git://git.wincent.com/command-t.git'
|
|
||||||
" tpope/surround
|
" tpope/surround
|
||||||
Plugin 'tpope/vim-surround'
|
Plugin 'tpope/vim-surround'
|
||||||
" nerdtree
|
" nerdtree
|
||||||
Plugin 'git://github.com/scrooloose/nerdtree.git'
|
Plugin 'git://github.com/scrooloose/nerdtree.git'
|
||||||
" youCompleteMe
|
" youCompleteMe
|
||||||
Plugin 'git://github.com/Valloric/YouCompleteMe.git'
|
Plugin 'git://github.com/Valloric/YouCompleteMe.git'
|
||||||
" leafgarland -- typescript recognition
|
|
||||||
" Plugin 'https://github.com/leafgarland/typescript-vim'
|
|
||||||
" omnisharp (c#)
|
" omnisharp (c#)
|
||||||
Plugin 'OmniSharp/omnisharp-vim'
|
Plugin 'OmniSharp/omnisharp-vim'
|
||||||
" ale -- asynchronus error checking
|
" ale -- asynchronus error checking
|
||||||
Plugin 'https://github.com/w0rp/ale'
|
Plugin 'https://github.com/w0rp/ale'
|
||||||
|
|
||||||
" example for local command:
|
|
||||||
" Plugin 'file:///home/gmarik/path/to/plugin'
|
|
||||||
" <======================================================>
|
" <======================================================>
|
||||||
" All of your Plugins must be added before the following line
|
call vundle#end()
|
||||||
call vundle#end() " required
|
filetype plugin indent on
|
||||||
filetype plugin indent on " required
|
|
||||||
" To ignore plugin indent changes, instead use:
|
" To ignore plugin indent changes, instead use:
|
||||||
"filetype plugin on
|
" filetype plugin on
|
||||||
"
|
|
||||||
" Brief help
|
" Brief help
|
||||||
" :PluginList - lists configured plugins
|
" :PluginList - lists configured plugins
|
||||||
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
|
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
|
||||||
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
|
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
|
||||||
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
|
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
|
||||||
"
|
|
||||||
" see :h vundle for more details or wiki for FAQ
|
" see :h vundle for more details or wiki for FAQ
|
||||||
" Put your non-Plugin stuff after this line
|
|
||||||
|
|
||||||
" ===================================================================================
|
" ===================================================================================
|
||||||
" === MY PLUGIN SETTINGS ============================================================
|
" === PLUGIN-SPECIFIC SETTINGS ======================================================
|
||||||
" ===================================================================================
|
" ===================================================================================
|
||||||
|
|
||||||
" --- Nerd Tree ---
|
" --- Nerd Tree ---
|
||||||
@ -63,7 +55,11 @@ function! ToggleYCM()
|
|||||||
echohl DiffAdd | echo "YouCompleteMe autocompletion enabled" | echohl None
|
echohl DiffAdd | echo "YouCompleteMe autocompletion enabled" | echohl None
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
let g:ycm_goto_buffer_command = 'new-tab'
|
||||||
|
|
||||||
nnoremap <C-p> :call ToggleYCM()<CR>
|
nnoremap <C-p> :call ToggleYCM()<CR>
|
||||||
|
nnoremap gd :YcmCompleter GoToDefinition<CR>
|
||||||
" STARTS DEACTIVATED
|
" STARTS DEACTIVATED
|
||||||
" let g:ycm_auto_trigger=0
|
" let g:ycm_auto_trigger=0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user