From 9bc8bad629259598e2fe85617798d99da9cc5d3f Mon Sep 17 00:00:00 2001 From: kuben Date: Thu, 19 Sep 2019 08:26:58 +0200 Subject: [PATCH] vimrc: Add vim-indexer --- .vimrc | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/.vimrc b/.vimrc index 352285b..eb5a542 100755 --- a/.vimrc +++ b/.vimrc @@ -23,6 +23,7 @@ if filereadable(expand(vundle_dir) . "/README.md") Plugin 'airblade/vim-gitgutter' Plugin 'jeetsukumaran/vim-pythonsense' Plugin 'easymotion/vim-easymotion' + Plugin 'file:///home/kuba/git/vim-indexer' call vundle#end() " required else @@ -104,29 +105,6 @@ let g:ctrlp_working_path_mode = 'ra' let git_dir_location=finddir('.git', ';') let git_root_location=fnamemodify(git_dir_location, ':h') -" Locate cscope file -if has("cscope") - set csto=0 " Search cscope before ctags - set cst " searches cscope also - set nocsverb " Not verbose when adding database - set cspc=3 " Display the last 3 components of file path - "add any database in current dir - if filereadable("cscope.out") - cs add cscope.out - "else search cscope.out in git folder - else - let cscope_file=findfile("cscope.out", git_dir_location) - if !empty(cscope_file) && filereadable(cscope_file) - exe "cs add" cscope_file git_root_location - endif - endif -endif - -command! Csc cscope find c -" Regen cscope -" sh ~/bin/gen_cscope.sh . .git/cscope.out -" - " Simulate maximize/minimize window nnoremap m :call ToggleMiniMaxiWin() nnoremap wm :call ToggleMiniMaxiWin() @@ -145,6 +123,7 @@ endfunction " Key binds " +command! Csc cscope find c " Replace the word under cursor nnoremap * :%s/\<\>//g