comparison runtime/doc/usr_25.txt @ 18475:709c6b0dc78f v8.1.2231

patch 8.1.2231: not easy to move to the middle of a text line Commit: https://github.com/vim/vim/commit/8b530c1ff91f07cf6b0289a536992b7dfbc86598 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 28 02:13:05 2019 +0100 patch 8.1.2231: not easy to move to the middle of a text line Problem: Not easy to move to the middle of a text line. Solution: Add the gM command. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/2070)
author Bram Moolenaar <Bram@vim.org>
date Mon, 28 Oct 2019 02:15:05 +0100
parents 5c5908e81e93
children af69c9335223
comparison
equal deleted inserted replaced
18474:95daf3963003 18475:709c6b0dc78f
344 left and right of the window is ignored. These never cause the text to 344 left and right of the window is ignored. These never cause the text to
345 scroll: 345 scroll:
346 346
347 g0 to first visible character in this line 347 g0 to first visible character in this line
348 g^ to first non-blank visible character in this line 348 g^ to first non-blank visible character in this line
349 gm to middle of this line 349 gm to middle of screen line
350 gM to middle of the text in this line
350 g$ to last visible character in this line 351 g$ to last visible character in this line
351 352
352 |<-- window -->| 353 |<-- window -->|
353 some long text, part of which is visible ~ 354 some long text, part of which is visible in one line ~
354 g0 g^ gm g$ 355 g0 g^ gm gM g$
355 356
356 357
357 BREAKING AT WORDS *edit-no-break* 358 BREAKING AT WORDS *edit-no-break*
358 359
359 When preparing text for use by another program, you might have to make 360 When preparing text for use by another program, you might have to make