aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/usr_03.txt
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-29 21:57:46 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-29 23:35:37 -0400
commitf5d1f0bf0372ac57c8b1f814bb5b18f13b3b53de (patch)
treeac3ecc8d51aceea2c4d5b9557c5596bb1ce09a23 /runtime/doc/usr_03.txt
parent1e03e76dafb5d166bb3d9ed262695f306de6ac4d (diff)
downloadrneovim-f5d1f0bf0372ac57c8b1f814bb5b18f13b3b53de.tar.gz
rneovim-f5d1f0bf0372ac57c8b1f814bb5b18f13b3b53de.tar.bz2
rneovim-f5d1f0bf0372ac57c8b1f814bb5b18f13b3b53de.zip
vim-patch:1c6737b20a5c
Update runtime files. https://github.com/vim/vim/commit/1c6737b20a5cf71751b180461cea22fc76d8870c
Diffstat (limited to 'runtime/doc/usr_03.txt')
-rw-r--r--runtime/doc/usr_03.txt17
1 files changed, 9 insertions, 8 deletions
diff --git a/runtime/doc/usr_03.txt b/runtime/doc/usr_03.txt
index b1b04f95c7..d42701b698 100644
--- a/runtime/doc/usr_03.txt
+++ b/runtime/doc/usr_03.txt
@@ -30,10 +30,11 @@ Table of contents: |usr_toc.txt|
To move the cursor forward one word, use the "w" command. Like most Vim
commands, you can use a numeric prefix to move past multiple words. For
-example, "3w" moves three words. This figure shows how it works:
+example, "3w" moves three words. This figure shows how it works (starting at
+the position marked with "x"):
This is a line with example text ~
- --->-->->----------------->
+ x-->-->->----------------->
w w w 3w
Notice that "w" moves to the start of the next word if it already is at the
@@ -41,15 +42,15 @@ start of a word.
The "b" command moves backward to the start of the previous word:
This is a line with example text ~
- <----<--<-<---------<---
+ <----<--<-<---------<--x
b b b 2b b
There is also the "e" command that moves to the next end of a word and "ge",
which moves to the previous end of a word:
This is a line with example text ~
- <- <--- -----> ---->
- ge ge e e
+ <----<----x---->------------>
+ 2ge ge e we
If you are at the last word of a line, the "w" command will take you to the
first word in the next line. Thus you can use this to move through a
@@ -82,12 +83,12 @@ an <End> key it will do the same thing.
The "^" command moves to the first non-blank character of the line. The "0"
command (zero) moves to the very first character of the line, and the <Home>
-key does the same thing. In a picture:
+key does the same thing. In a picture ("." indicates a space):
^
- <------------
+ <-----------x
.....This is a line with example text ~
- <----------------- --------------->
+ <----------------x x-------------->
0 $
(the "....." indicates blanks here)