summaryrefslogtreecommitdiffstats
path: root/runtime/doc/motion.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-28 02:13:05 +0100
committerBram Moolenaar <Bram@vim.org>2019-10-28 02:13:05 +0100
commit8b530c1ff91f07cf6b0289a536992b7dfbc86598 (patch)
tree6a672624551a6e1a4e07d5274c2149afdd486a35 /runtime/doc/motion.txt
parent077ff436a77f95c69da219af8cd8f553ff4f9ff8 (diff)
patch 8.1.2231: not easy to move to the middle of a text linev8.1.2231
Problem: Not easy to move to the middle of a text line. Solution: Add the gM command. (Yasuhiro Matsumoto, closes #2070)
Diffstat (limited to 'runtime/doc/motion.txt')
-rw-r--r--runtime/doc/motion.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt
index f0935da0eb..9ac460a738 100644
--- a/runtime/doc/motion.txt
+++ b/runtime/doc/motion.txt
@@ -1,4 +1,4 @@
-*motion.txt* For Vim version 8.1. Last change: 2019 Jun 02
+*motion.txt* For Vim version 8.1. Last change: 2019 Oct 28
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -227,6 +227,12 @@ g^ When lines wrap ('wrap' on): To the first non-blank
gm Like "g0", but half a screenwidth to the right (or as
much as possible).
+ *gm* *gM*
+gM Like "g0", but to halfway the text of the line.
+ With a count: to this percentage of text in the line.
+ Thus "10gM" is near the start of the text and "90gM"
+ is near the end of the text.
+
*g$* *g<End>*
g$ or g<End> When lines wrap ('wrap' on): To the last character of
the screen line and [count - 1] screen lines downward