Edit Page
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 11: | Line 11: | ||
|category2= |
|category2= |
||
}} |
}} |
||
β | When scrolling or searching through a large file it is easy to lose sight of the cursor. A simple way to locate the cursor is to type < |
+ | When scrolling or searching through a large file it is easy to lose sight of the cursor. A simple way to locate the cursor is to type <tt>zz</tt> (which scrolls the cursor line to the middle of the window), or to quickly type <tt>jk</tt> (which moves the cursor down then up; the movement shows where the cursor is). This tip shows other ways to find the cursor with highlighting. |
==Highlighting text near the cursor== |
==Highlighting text near the cursor== |
||
Line 30: | Line 30: | ||
</pre> |
</pre> |
||
β | The search pattern uses < |
+ | The search pattern uses <tt>\%#</tt> to match the cursor position, including <tt>\k*</tt> (all consecutive keyword characters) before and after that match. {{help|/\%#}} {{help|/\k}} |
β | The match uses the < |
+ | The match uses the <tt>Todo</tt> highlight group. |
==See also== |
==See also== |