繁体   English   中英

vim中的光标可以更改为下划线吗?

[英]Can the cursor in vim be changed to an underscore?

有没有一种方法可以使光标成为下划线-> _而不是框?

我查看了该线程并尝试了命令,但没有任何更改。 我知道有一个设置的cursorline选项,但这不是我想要的。

布朗尼指出了,如果您能告诉我如何使其闪烁。

这可能受'guicursor'选项cp影响。 :help 'guicursor'了解详情。 以下内容使您在所有模式下都有闪烁的下划线光标:

:set guicursor=a:hor20-Cursor

这主要仅适用于GVIM。 在终端中,您必须找到适当的ANSI转义序列来切换光标形状,或者最好只是在终端的设置中重新配置光标。

(In Ubuntu) Definitely, you can change Cursor Shape to I-Beam, Underscore or Block (Default) in VIM :

Step 1: Go the Edit menu in terminal
Step 2: Select the 'Profile Preferences' Option.
A window window will appear...

Step 3: Select 'General' tab into the opened window.
At the bottom of the tab you can find 'Cursor Shape' option.
From here you can change Cursor Shape to I-Beam, Underscore or Block.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM