当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : vim cscope键位映射的问题
帖子发表于 : 2012-04-24 22:25 

注册: 2010-12-05 13:49
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
我在.vimrc里加入了

nmap <[email protected]>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <[email protected]>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <[email protected]>d :cs find d <C-R>=expand("<cword>")<CR><CR>

可是阅读代码的时候为什么按ctrl+s等键没反应呢
谢谢解答一下,3q!


页首
 用户资料  
 
2 楼 
 文章标题 : Re: vim cscope键位映射的问题
帖子发表于 : 2012-04-24 23:26 
头像

注册: 2009-04-11 23:46
帖子: 4130
系统: Arch Linux
送出感谢: 11
接收感谢: 124
<[email protected]> 好像等同于 <C-space> 吧?
目前不要用太奇怪的组合键,即使你用的是 gvim。


_________________
我的博客 https://blog.lilydjwg.me/
提问的智慧
Arch Linux 中文论坛

我的vimrc: https://git.io/vimrc


页首
 用户资料  
 
3 楼 
 文章标题 : Re: vim cscope键位映射的问题
帖子发表于 : 2012-04-25 1:02 

注册: 2008-03-12 14:33
帖子: 54
送出感谢: 0 次
接收感谢: 0 次
napolen.huang 写道:
我在.vimrc里加入了

nmap <[email protected]>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <[email protected]>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <[email protected]>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/


页首
 用户资料  
 
4 楼 
 文章标题 : Re: vim cscope键位映射的问题
帖子发表于 : 2012-04-25 12:37 

注册: 2010-12-05 13:49
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
xvii 写道:
napolen.huang 写道:
我在.vimrc里加入了

nmap <[email protected]>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <[email protected]>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <[email protected]>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <[email protected]>d :cs find d <C-R>=expand("<cword>")<CR><CR>

可是阅读代码的时候为什么按ctrl+s等键没反应呢
谢谢解答一下,3q!

C-s这个映射可能已经被占用。
推荐两款相关的插件:
cscope_quickfix.vim
cscope_macros.vim
使用前仔细阅读它的文档以便获得最佳体验。


已用cscope_macros.vim,谢谢


页首
 用户资料  
 
5 楼 
 文章标题 : Re: vim cscope键位映射的问题
帖子发表于 : 2014-07-01 9:35 

注册: 2013-11-12 14:10
帖子: 1
系统: ubuntu
送出感谢: 0 次
接收感谢: 0 次
你好。
Ctrl - s 表示锁住当前屏幕的输出,按Ctrl - q 就能退出该状态


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 0 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译