我在.vimrc里加入了
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>
可是阅读代码的时候为什么按ctrl+s等键没反应呢
谢谢解答一下,3q!
vim cscope键位映射的问题
-
- 帖子: 6
- 注册时间: 2010-12-05 13:49
- lilydjwg
- 论坛版主
- 帖子: 4249
- 注册时间: 2009-04-11 23:46
- 系统: Arch Linux
- 联系:
Re: vim cscope键位映射的问题
<C-@> 好像等同于 <C-space> 吧?
目前不要用太奇怪的组合键,即使你用的是 gvim。
目前不要用太奇怪的组合键,即使你用的是 gvim。
-
- 帖子: 54
- 注册时间: 2008-03-12 14:33
Re: vim cscope键位映射的问题
C-s这个映射可能已经被占用。napolen.huang 写了:我在.vimrc里加入了
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>
可是阅读代码的时候为什么按ctrl+s等键没反应呢
谢谢解答一下,3q!
推荐两款相关的插件:
cscope_quickfix.vim
cscope_macros.vim
使用前仔细阅读它的文档以便获得最佳体验。
操作系统:Linux erocpil 2.6.38-gentoo-r6 #2 SMP Sun Sep 11 10:15:16 GMT 2011 x86_64 Intel(R) Core(TM)2 CPU T5200 @ 1.60GHz GenuineIntel GNU/Linux
编程语言:C/C++,Perl。
谷歌代码:manshow-重新编译的win32版本Vim,加入诸多特性:非等宽中文字体(如微软雅黑),脚本语言接口(如Perl,Python,Lua),透明效果等。
个人主页:http://lyx.us.tc/
编程语言:C/C++,Perl。
谷歌代码:manshow-重新编译的win32版本Vim,加入诸多特性:非等宽中文字体(如微软雅黑),脚本语言接口(如Perl,Python,Lua),透明效果等。
个人主页:http://lyx.us.tc/
-
- 帖子: 6
- 注册时间: 2010-12-05 13:49
Re: vim cscope键位映射的问题
已用cscope_macros.vim,谢谢xvii 写了:C-s这个映射可能已经被占用。napolen.huang 写了:我在.vimrc里加入了
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>
可是阅读代码的时候为什么按ctrl+s等键没反应呢
谢谢解答一下,3q!
推荐两款相关的插件:
cscope_quickfix.vim
cscope_macros.vim
使用前仔细阅读它的文档以便获得最佳体验。
-
- 帖子: 1
- 注册时间: 2013-11-12 14:10
- 系统: ubuntu
Re: vim cscope键位映射的问题
你好。
Ctrl - s 表示锁住当前屏幕的输出,按Ctrl - q 就能退出该状态
Ctrl - s 表示锁住当前屏幕的输出,按Ctrl - q 就能退出该状态