Wikia

Vim Tips Wiki

Changes: Non-blinking block cursor in a Linux console

Edit

Back to page

(Adding categories)
(minor formatting)
 
Line 9: Line 9:
 
|version=5.7
 
|version=5.7
 
|rating=24/8
 
|rating=24/8
|category1=
+
|category1=Integration
 
|category2=
 
|category2=
 
}}
 
}}
Line 25: Line 25:
   
 
==Comments==
 
==Comments==
[[Category:Integration]]
 

Latest revision as of 05:22, July 4, 2009

Tip 817 Printable Monobook Previous Next

created November 7, 2004 · complexity basic · author David Schweikert · version 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 an 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.

CommentsEdit

Around Wikia's network

Random Wiki