Search a word through cscope egrep (It's fast!!)
Copy the autoload and plugin folder to ~/.vim
Add Plug 'susu9/cscope-search' to .vimrc
call plug#begin('~/.vim/plugged')
Plug 'susu9/cscope-search'
call plug#end()
Command | Description |
---|---|
CscopeSearch |
Input and seach a word |
CscopeSearchHistory |
Select and repeat a search by history |
CscopeSearchLast |
Repeat the latest search |
Flag | Default | Description |
---|---|---|
g:cscope_search_history_size |
15 | How many search commands you want to keep |
g:cscope_search_prevent_jump |
1 | Prevent automatically jump to the first search result when quickfix is enable |
Example
set cscopequickfix=s-,f-,g-,c-,d-,i-,t-,e-
nnoremap <C-f> :CscopeSearch<CR>
nnoremap <C-h> :CscopeSearchHistory<CR>
nnoremap <C-l> :CscopeSearchLast<CR>
autocmd QuickFixCmdPost [^l]* nested botright cwindow 6