<!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>Basic Movement</title>
<meta name="description" content="Basic Movement">
<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="next" href="node10.html">
<link rel="previous" href="node8.html">
<link rel="up" href="node8.html">
<link rel="next" href="node10.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="tex2html192" href="node10.html">
<img width="37" height="24" align="BOTTOM" border="0" alt="next" src="/woodnotes/vim-for-writers/next.png"></a> 
<a name="tex2html188" href="node8.html">
<img width="26" height="24" align="BOTTOM" border="0" alt="up" src="/woodnotes/vim-for-writers/up.png"></a> 
<a name="tex2html182" href="node8.html">
<img width="63" height="24" align="BOTTOM" border="0" alt="previous" src="/woodnotes/vim-for-writers/prev.png"></a> 
<a name="tex2html190" 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="tex2html193" href="node10.html">Navigation by Search</a>
<b> Up:</b> <a name="tex2html189" href="node8.html">Getting Around with the</a>
<b> Previous:</b> <a name="tex2html183" href="node8.html">Getting Around with the</a>
 &nbsp; <b>  <a name="tex2html191" href="node1.html">Contents</a></b> 
<br>
<br>
<!--End of Navigation Panel-->

<h2><a name="SECTION00081000000000000000">
Basic Movement</a>
</h2>

<p>
Vim will most impact your proficiency by facilitating rapid movement of the
cursor and navigation through your document without taking your hands from the
keyboard.  Your mastery and application of movement and scrolling commands are
thus essential.

<p>

<div align="CENTER"><a name="basic-movement"></a><a name="257"></a>
<table>
<caption align="BOTTOM"><strong>Figure 3:</strong>
Basic Movement</caption>
<tr><td><img width="255" height="169" border="0" src="/woodnotes/vim-for-writers/img3.png" alt="\begin{figure}\begin{tabular}{ll}
\par
Direction &amp; Key \ \hline
\par
Left, Righ...
...&amp; \{,\}
\\
Beginning, End of Doc &amp; gg, G \\
\par
\end{tabular}
\end{figure}"></td></tr>
</table>
</div>

<p>
Note that if you are using soft wrapping, what Vim considers to be a ``line''
 is actually what we would call a paragraph since to Vim, a line ends with a
 ``new line'' character.  As such, moving up by one line at a time (using
 <tt>j</tt> and <tt>k</tt>) actually moves the cursor up by one paragraph at a
 time.  In that case, use <tt>gj</tt> and <tt>gk</tt> to advance the cursor
 one screen line at a time. You can gain some time with prepending a numerical
 reference, so typing <tt>3(</tt> will take you back 3 sentences, and
 <tt>5}</tt> will advance the cursor 5 paragraphs.

<p>
Vim is aware of what you have visible on the screen, and allows you to quickly
jump around on that basis as follows:

<p>

<div align="CENTER"><a name="advanced-movement"></a><a name="258"></a>
<table>
<caption align="BOTTOM"><strong>Figure 4:</strong>
Advanced Movement</caption>
<tr><td><img width="356" height="92" border="0" src="/woodnotes/vim-for-writers/img4.png" alt="\begin{figure}\begin{tabular}{ll}
Position on Screen &amp; Key \\
\hline Top Line ...
...&amp; L
\ line n from top, bottom of window &amp; nH, nL \ \end{tabular}
\end{figure}"></td></tr>
</table>
</div>

<p>
<hr>
<!--Navigation Panel-->
<a name="tex2html192" href="node10.html">
<img width="37" height="24" align="BOTTOM" border="0" alt="next" src="/woodnotes/vim-for-writers/next.png"></a> 
<a name="tex2html188" href="node8.html">
<img width="26" height="24" align="BOTTOM" border="0" alt="up" src="/woodnotes/vim-for-writers/up.png"></a> 
<a name="tex2html182" href="node8.html">
<img width="63" height="24" align="BOTTOM" border="0" alt="previous" src="/woodnotes/vim-for-writers/prev.png"></a> 
<a name="tex2html190" 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="tex2html193" href="node10.html">Navigation by Search</a>
<b> Up:</b> <a name="tex2html189" href="node8.html">Getting Around with the</a>
<b> Previous:</b> <a name="tex2html183" href="node8.html">Getting Around with the</a>
 &nbsp; <b>  <a name="tex2html191" href="node1.html">Contents</a></b> 
<!--End of Navigation Panel-->
<address>
Benjamin Gray
2009-08-04
</address>
</body>
</html>

