vim cscope键位映射的问题

Vim、Emacs配置和使用
回复
napolen.huang
帖子: 6
注册时间: 2010-12-05 13:49

vim cscope键位映射的问题

#1

帖子 napolen.huang » 2012-04-24 22:25

我在.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!
头像
lilydjwg
论坛版主
帖子: 4249
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: vim cscope键位映射的问题

#2

帖子 lilydjwg » 2012-04-24 23:26

<C-@> 好像等同于 <C-space> 吧?
目前不要用太奇怪的组合键,即使你用的是 gvim。
xvii
帖子: 54
注册时间: 2008-03-12 14:33

Re: vim cscope键位映射的问题

#3

帖子 xvii » 2012-04-25 1:02

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!
C-s这个映射可能已经被占用。
推荐两款相关的插件:
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/
napolen.huang
帖子: 6
注册时间: 2010-12-05 13:49

Re: vim cscope键位映射的问题

#4

帖子 napolen.huang » 2012-04-25 12:37

xvii 写了:
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!
C-s这个映射可能已经被占用。
推荐两款相关的插件:
cscope_quickfix.vim
cscope_macros.vim
使用前仔细阅读它的文档以便获得最佳体验。
已用cscope_macros.vim,谢谢
Jason_Old_Woo
帖子: 1
注册时间: 2013-11-12 14:10
系统: ubuntu

Re: vim cscope键位映射的问题

#5

帖子 Jason_Old_Woo » 2014-07-01 9:35

你好。
Ctrl - s 表示锁住当前屏幕的输出,按Ctrl - q 就能退出该状态
回复