Vim logo vim online Vim Book Ad

basic Tip #262: Bored of ur arrow shapped mouseptr?

 tip karma   Rating 5/10, Viewed by 841 

created:   June 13, 2002 22:44      complexity:   basic
author:   ncr      as of Vim:   6.0

here is how u can change the shape of ur mouseptr in gvim.

:set mouseshape=n:pencil

this will change the shape of the mouseptr to pencil in normal mode.
u can choose different shapes for different modes. see :h mouseshape

Want more shapes?

Then look for the file cursorfont.h in ur 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.

-ncr

 rate this tip  Life Changing Helpful Unfulfilling 

<<Close windows from  Gvim poup menu | color active line >>

Additional Notes

Anonymous, June 14, 2002 2:02
Not available for Windows.
Anonymous, June 26, 2002 18:28
Actually, only certain built-in cursors are available in windows.  Pencil doesn't work, but others do.   See <tt>:help mouseshape</tt>
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.
SourceForge Logo