From d7f9f08a6e7addcf94f7527f21ff43fbb7b90774 Mon Sep 17 00:00:00 2001 From: rayylee Date: Wed, 10 Mar 2021 20:33:32 -0500 Subject: [PATCH] vimrc: add cscope find -g for cscopequickfix, and set quickfix height to 10 --- vim/plugin/autoload_cscope.vim | 4 ++-- vimrc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/plugin/autoload_cscope.vim b/vim/plugin/autoload_cscope.vim index 3f84f47..b193b62 100644 --- a/vim/plugin/autoload_cscope.vim +++ b/vim/plugin/autoload_cscope.vim @@ -66,7 +66,7 @@ if !exists("g:is_autoloadcs_quickfix_open") endif function s:AutoloadcsQuickfixOpen() - cwindow 5 + cwindow 10 let s:is_autoloadcs_quickfix_open = 1 endfunction @@ -75,7 +75,7 @@ function AutoloadcsQuickfixToggle() cclose let s:is_autoloadcs_quickfix_open = 0 else - cwindow 5 + cwindow 10 let s:is_autoloadcs_quickfix_open = 1 endif endfunction diff --git a/vimrc b/vimrc index 8502395..58ea629 100644 --- a/vimrc +++ b/vimrc @@ -114,7 +114,7 @@ autocmd BufWritePre * call StripTrailingWhitespace() autocmd BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif if has("cscope") && filereadable("/usr/bin/cscope") - set cscopequickfix=s-,c-,d-,i-,t-,e- + set cscopequickfix=s-,c-,d-,i-,t-,e-,g- endif nmap :cp