sponsor Vim development Vim logo Vim Book Ad

basic Tip #817: Non-blinking block cursor in the linux console

 tip karma   Rating 12/5, Viewed by 607 

created:   November 7, 2004 13:28      complexity:   basic
author:   David Schweikert      as of Vim:   5.7

If you are a Linux user editing with Vim in the console, you can put the following in your .vimrc to have a nice non-blinking block cursor like in a xterm:

if &term; == "linux"
        set t_ve+=^[[?81;0;112c
endif

Note that the ^[ above needs to be typed like this: <CTRL-V> <ESC>.

See Documentation/VGA-softcursor.txt in the kernel sources for details about this escape sequence.

 rate this tip  Life Changing Helpful Unfulfilling 

<<JAVH: Just another VIM Hacker | Vim/GVim as Diff tool for TortoiseCVS >>

Additional Notes

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
Sponsored by Web Concept Group Inc. SourceForge Logo