Vim Tips Wiki
No edit summary
 
(Change <tt> to <code>, perhaps also minor tweak.)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{review}}
 
{{review}}
  +
{{TipImported
{{Tip
 
 
|id=262
 
|id=262
  +
|previous=261
|title=Bored of ur arrow shapped mouseptr?
 
  +
|next=264
|created=June 13, 2002 22:44
+
|created=2002
 
|complexity=basic
 
|complexity=basic
 
|author=ncr
 
|author=ncr
 
|version=6.0
 
|version=6.0
 
|rating=5/12
 
|rating=5/12
  +
|category1=Mouse
|text=
 
  +
|category2=
here is how u can change the shape of ur mouseptr in gvim.
 
 
}}
 
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?
:set mouseshape=n:pencil
 
   
 
Then look for the file cursorfont.h in your X11/ directory. This file contains lots of cursor shape #define definitions, like
   
  +
<pre>
 
.
 
#define XC_heart 62
 
.
  +
</pre>
   
this will change the shape of the mouseptr to pencil in normal mode.
+
Now <code>:set mouseshape=n:62</code> will set the shape of the mouseptr to heart 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 &#35;define definitions, like
 
 
.
 
 
&#35;define XC_heart 62
 
 
.
 
 
now :set mouseshape=n:62 will set the shape of the mouseptr to heart
 
 
in normal mode.
 
 
 
 
-ncr
 
}}
 
   
== Comments ==
+
==Comments==
 
Not available for Windows.
 
Not available for Windows.
   
'''Anonymous'''
 
, June 14, 2002 2:02
 
 
----
 
----
Actually, only certain built-in cursors are available in windows. Pencil doesn't work, but others do. See &lt;tt&gt;:help mouseshape&lt;/tt&gt;
+
Actually, only certain built-in cursors are available in Windows. Pencil doesn't work, but others do. See <code>:help mouseshape</code>
   
'''Anonymous'''
 
, June 26, 2002 18:28
 
 
----
 
----
<!-- parsed by vimtips.py in 0.428185 seconds-->
 

Latest revision as of 05:21, 13 July 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.

Comments[]

Not available for Windows.


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