aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2013-07-04 22:23:22 +0800
committerLAN-TW <lantw44@gmail.com>2013-07-04 22:23:22 +0800
commitce1f3be48858c53066722b180ce535cfafc4484e (patch)
tree0635812629f13b1afbdf48b9e10c6895f17e9430 /vimrc
parent004bbf6579c0f6df6b59916d4a76c0323fa11fbe (diff)
downloadconfigfile-ce1f3be48858c53066722b180ce535cfafc4484e.tar
configfile-ce1f3be48858c53066722b180ce535cfafc4484e.tar.gz
configfile-ce1f3be48858c53066722b180ce535cfafc4484e.tar.bz2
configfile-ce1f3be48858c53066722b180ce535cfafc4484e.tar.lz
configfile-ce1f3be48858c53066722b180ce535cfafc4484e.tar.xz
configfile-ce1f3be48858c53066722b180ce535cfafc4484e.tar.zst
configfile-ce1f3be48858c53066722b180ce535cfafc4484e.zip
bash_include: compile_all 可自訂編譯器、移除行尾空白 | vimrc: cscope 快速鍵vimrc-20130704bash_include-20130704
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc14
1 files changed, 14 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index e3219a0..83357bf 100644
--- a/vimrc
+++ b/vimrc
@@ -97,4 +97,18 @@ if g:plugins_enabled
Bundle 'tkztmk/vim-vala'
endif
+if has("cscope")
+ set cst
+ set csverb
+ set cscopequickfix=s-,c-,d-,i-,t-,e-
+ nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>g :cs find g <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
+ nmap <C-\>i :cs find i <C-R>=expand("<cfile>")<CR>$<CR>
+ nmap <C-\>d :cs find d <C-R>=expand("<cword>")<CR><CR>
+endif
+
"set guifont=Liberation\ Mono\ for\ Powerline\ 11