【发布时间】:2012-12-01 20:56:15
【问题描述】:
在插入模式下,我希望在 vim 中将光标设置为 |(在 gnome-terminal 中很容易,但我想切换到 urxvt)。我没有找到好方法(_ 是可能的,但我真的更喜欢 | )。我敢肯定,只要有一点想象力,在 urxvt 中一切皆有可能。
有没有你知道的方法(或者只是一个想法)?
【问题讨论】:
-
你在 gnome-terminal 中是怎么做的?
-
在我的 .vimrc 中:如果 has("autocmd") au InsertEnter * 静默执行 "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Profile1/cursor_shape ibeam " au InsertLeave * 静默执行 "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Profile1/cursor_shape 块" au VimLeave *静默执行 "!gconftool-2 --type string --set / apps/gnome-terminal/profiles/Profile1/cursor_shape block" endif 基本上我只需要一个命令就可以在urxvt中设置光标,但目前看来不可能。