Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.72 KB

README.md

File metadata and controls

42 lines (33 loc) · 1.72 KB

cscope-search

Search a word through cscope egrep (It's fast!!)

cscope-search-demo-small

Installation

Manually download

Copy the autoload and plugin folder to ~/.vim

Use vim-plug

Add Plug 'susu9/cscope-search' to .vimrc

call plug#begin('~/.vim/plugged')
Plug 'susu9/cscope-search'
call plug#end()

Commands

Command Description
CscopeSearch Input and seach a word
CscopeSearchHistory Select and repeat a search by history
CscopeSearchLast Repeat the latest search

Global options

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

vimrc configuration

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