Wikia

Vim Tips Wiki

Changes: Change the gvim mouse arrow cursor

Edit

Back to page

(Standard category names + minor manual clean.)
(Change <tt> to <code>, perhaps also minor tweak.)
 
Line 28: Line 28:
 
</pre>
 
</pre>
   
Now <tt>:set mouseshape=n:62</tt> will set the shape of the mouseptr to heart in normal mode.
+
Now <code>:set mouseshape=n:62</code> will set the shape of the mouseptr to heart in normal mode.
   
 
==Comments==
 
==Comments==
Line 34: Line 34:
   
 
----
 
----
Actually, only certain built-in cursors are available in Windows. Pencil doesn't work, but others do. See <tt>:help mouseshape</tt>
+
Actually, only certain built-in cursors are available in Windows. Pencil doesn't work, but others do. See <code>:help mouseshape</code>
   
 
----
 
----

Latest revision as of 05:21, July 13, 2012

Tip 262 Printable Monobook Previous Next

created 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.

CommentsEdit

Not available for Windows.


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


Around Wikia's network

Random Wiki