Konsole Vim 光标形状随模式变换

心之所在 | 2011/01/02

方便分辨是否在插入模式,插入模式是I字型,不然就是方块。

.vimrc 配置

let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"

没改之前的普通模式

vimkonsole1.jpeg (756×552)

和插入模式都是方块

vimkonsole2.jpeg (757×557)

改了之后,普通模式依旧是方块

vimkonsole4.jpeg (753×464)

但是插入模式改成了I字型

vimkonsole3.jpeg (750×456)

via wikia

    泰达希尔-德鲁伊
    Tags: ,

    12 FEEDBACKS

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).

    This site uses Akismet to reduce spam. Learn how your comment data is processed.