如何把vi在插入状态的光标改为竖线
-
- 帖子: 31
- 注册时间: 2008-06-09 13:48
如何把vi在插入状态的光标改为竖线
如何把vi在插入状态的光标改为竖线
-
- 帖子: 31
- 注册时间: 2008-06-02 12:44
Re: 如何把vi在插入状态的光标改为竖线
同问,这个问题有人知道不,知道的回一下呀!谢谢!!
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- yzytr
- 帖子: 67
- 注册时间: 2009-01-15 14:28
-
- 帖子: 2841
- 注册时间: 2006-09-11 22:47
Re: 如何把vi在插入状态的光标改为竖线
可以,这个在 vim 官方网站的 tip 上有帖子说明。
如果你使用 konsole 的话:
把这两行加到 .vimrc 就可以实现变换光标了。
如果你使用其它终端,要自己搜一下方法。
注意,支持这个功能的终端很少的。
如果你使用 konsole 的话:
代码: 全选
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
如果你使用其它终端,要自己搜一下方法。
注意,支持这个功能的终端很少的。
-
- 帖子: 31
- 注册时间: 2008-06-02 12:44
Re: 如何把vi在插入状态的光标改为竖线
你们说的两种方法都不行哦!第一种中我没有鼠标形状这个项。第二种试了,没有反应!我用的是8.04 version
- 蝶梦我
- 帖子: 9
- 注册时间: 2010-05-21 23:44
Re: 如何把vi在插入状态的光标改为竖线
vimrc加上
不过其它的终端窗口也会受到影响。
代码: 全选
if has("autocmd")
au InsertEnter * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam"
au InsertLeave * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape block"
au VimLeave * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape block"
endif
儒风道骨 虚己游世