Skip to content

Commit

Permalink
vim: Add unite-gtags
Browse files Browse the repository at this point in the history
  • Loading branch information
oblique committed Jul 23, 2015
1 parent 76168e8 commit 7e54113
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .vimrc
Expand Up @@ -44,6 +44,8 @@ Plug 'Shougo/vimproc', { 'do' : 'make' }
Plug 'Shougo/neomru.vim'
Plug 'tpope/vim-fugitive'
Plug 'danro/rename.vim', { 'on' : 'Rename' }
Plug 'gtags.vim'
Plug 'hewes/unite-gtags'

" Install YouCompleteMe only if we have the dependencies installed
if executable('cmake') && isdirectory('/usr/include/clang-c') && isdirectory('/usr/include/boost')
Expand Down Expand Up @@ -102,6 +104,13 @@ nnoremap <silent><leader>r :<C-u>Unite -buffer-name=mru -start-insert file_mru<c
nnoremap <silent><leader>e :<C-u>Unite -buffer-name=buffer -start-insert buffer<cr>
" }}}

" unite-gtags {{{
nnoremap <silent><leader>gd :Unite gtags/def<cr>
nnoremap <silent><leader>gr :Unite gtags/ref<cr>
nnoremap <silent><leader>gc :Unite gtags/context<cr>
nnoremap <silent><leader>gg :Unite gtags/grep<cr>
" }}}

" Misc {{{
" Reset search highlight
noremap <leader>h :nohl<cr>
Expand Down

0 comments on commit 7e54113

Please sign in to comment.