Vim Tips Wiki
(Change to TipImported template + severe manual clean)
(Move categories to tip template)
Line 9: Line 9:
 
|version=6.0
 
|version=6.0
 
|rating=5/12
 
|rating=5/12
  +
|category1=
  +
|category2=
 
}}
 
}}
 
Here is how you can change the shape of your mouseptr in gvim.
 
Here is how you can change the shape of your mouseptr in gvim.

Revision as of 00:58, 25 April 2008

Tip 262 Printable Monobook Previous Next

created June 13, 2002 · complexity basic · author ncr · version 6.0


Here is how you can change the shape of your mouseptr in gvim.

:set mouseshape=n:pencil

This will change the shape of the mouseptr to pencil in normal mode. You can choose different shapes for different modes. See :help 'mouseshape'.

Want more shapes?

Then look for the file cursorfont.h in your X11/ directory. This file contains lots of cursor shape #define definitions, like

.
#define XC_heart 62
.

Now :set mouseshape=n:62 will set the shape of the mouseptr to heart in normal mode.

Comments

Not available for Windows.


Actually, only certain built-in cursors are available in Windows. Pencil doesn't work, but others do. See <tt>:help mouseshape</tt>