<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2002-2-1 (1.70)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<html>
<head>

<title>Navigation by Search</title>
<meta name="description" content="Navigation by Search">
<meta name="keywords" content="vimforwriters">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="LaTeX2HTML v2002-2-1">
<meta http-equiv="Content-Style-Type" content="text/css">

<link rel="STYLESHEET" href="/woodnotes/vim-for-writers/vimforwriters.css">

<link rel="previous" href="node9.html">
<link rel="up" href="node8.html">
<link rel="next" href="node11.html">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8787127231593738" crossorigin="anonymous"></script>

<script data-grow-initializer="">!(function(){window.growMe||((window.growMe=function(e){window.growMe._.push(e);}),(window.growMe._=[]));var e=document.createElement("script");(e.type="text/javascript"),(e.src="https://faves.grow.me/main.js"),(e.defer=!0),e.setAttribute("data-grow-faves-site-id","U2l0ZToxN2MyMDI0Yi01NmU1LTQ1MjUtYTM4NC1lNTk2MTExMzJhNzI=");var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t);})();</script>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9V0ZTBE59R"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-9V0ZTBE59R');
</script>
</head>

<body>
<!--Navigation Panel-->
<a name="tex2html202" href="node11.html">
<img width="37" height="24" align="BOTTOM" border="0" alt="next" src="/woodnotes/vim-for-writers/next.png"></a> 
<a name="tex2html198" href="node8.html">
<img width="26" height="24" align="BOTTOM" border="0" alt="up" src="/woodnotes/vim-for-writers/up.png"></a> 
<a name="tex2html194" href="node9.html">
<img width="63" height="24" align="BOTTOM" border="0" alt="previous" src="/woodnotes/vim-for-writers/prev.png"></a> 
<a name="tex2html200" href="node1.html">
<img width="65" height="24" align="BOTTOM" border="0" alt="contents" src="/woodnotes/vim-for-writers/contents.png"></a>  
<br>
<b> Next:</b> <a name="tex2html203" href="node11.html">Scrolling</a>
<b> Up:</b> <a name="tex2html199" href="node8.html">Getting Around with the</a>
<b> Previous:</b> <a name="tex2html195" href="node9.html">Basic Movement</a>
 &nbsp; <b>  <a name="tex2html201" href="node1.html">Contents</a></b> 
<br>
<br>
<!--End of Navigation Panel-->

<h2><a name="SECTION00082000000000000000">
Navigation by Search</a>
</h2>
 A very convenient way to get around is by
searching for a word located at the position you'd like to go to.  Vim offers
several mechanisms for searching, which gives you some flexibility in your
approach.

<p>

<div align="CENTER"><a name="search-movement"></a><a name="259"></a>
<table>
<caption align="BOTTOM"><strong>Figure 5:</strong>
Simple
Search Commands</caption>
<tr><td><img width="482" height="132" border="0" src="/woodnotes/vim-for-writers/img5.png" alt="\begin{figure}\begin{tabular}{ll} Search Mechanism &amp; Key \\
\hline search forwa...
...s occurrence of word under the
cursor &amp; \char93 ,* \ \end{tabular} \end{figure}"></td></tr>
</table>
</div>

<p>
The <tt>f</tt> and <tt>t</tt> commands are most useful for finding characters
that appear infrequently in your document, like punctuation marks; as such, I
don't use them frequently.  But searching using the <tt>/</tt> and <tt>?</tt>
commands is a fast way to get around your document.  You can type <tt>?
Dingleberry</tt> to be taken to the most recent use of that word in your document.
Continue searching in that direction by pressing <tt>n</tt> (in this case,
since we're searching upwards, <tt>n</tt> will continue searching upwards) or
<tt>N</tt> to search in the opposite direction (in this case, down).  Use a
prepended numeral to jump that many search results: <tt>? fleabag</tt> and then
<tt>3n</tt> will search for the word fleabag and take you to the 4th
occurrence. 

<p>
<hr>
<!--Navigation Panel-->
<a name="tex2html202" href="node11.html">
<img width="37" height="24" align="BOTTOM" border="0" alt="next" src="/woodnotes/vim-for-writers/next.png"></a> 
<a name="tex2html198" href="node8.html">
<img width="26" height="24" align="BOTTOM" border="0" alt="up" src="/woodnotes/vim-for-writers/up.png"></a> 
<a name="tex2html194" href="node9.html">
<img width="63" height="24" align="BOTTOM" border="0" alt="previous" src="/woodnotes/vim-for-writers/prev.png"></a> 
<a name="tex2html200" href="node1.html">
<img width="65" height="24" align="BOTTOM" border="0" alt="contents" src="/woodnotes/vim-for-writers/contents.png"></a>  
<br>
<b> Next:</b> <a name="tex2html203" href="node11.html">Scrolling</a>
<b> Up:</b> <a name="tex2html199" href="node8.html">Getting Around with the</a>
<b> Previous:</b> <a name="tex2html195" href="node9.html">Basic Movement</a>
 &nbsp; <b>  <a name="tex2html201" href="node1.html">Contents</a></b> 
<!--End of Navigation Panel-->
<address>
Benjamin Gray
2009-08-04
</address>
</body>
</html>

