Mercurial > vim
comparison runtime/doc/motion.txt @ 16610:1eaf34420bb3
Update runtime files
commit https://github.com/vim/vim/commit/a6c27c47ddf081859659d7de1caec675147e466b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 9 19:16:22 2019 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 May 2019 19:30:06 +0200 |
parents | 0e473e9e70c2 |
children | c002c4899529 |
comparison
equal
deleted
inserted
replaced
16609:175385d2d3d9 | 16610:1eaf34420bb3 |
---|---|
1 *motion.txt* For Vim version 8.1. Last change: 2019 May 05 | 1 *motion.txt* For Vim version 8.1. Last change: 2019 May 07 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
407 a range of folded lines. "b" and "B" move to the start of the first word or | 407 a range of folded lines. "b" and "B" move to the start of the first word or |
408 WORD before the fold. | 408 WORD before the fold. |
409 | 409 |
410 Special case: "cw" and "cW" are treated like "ce" and "cE" if the cursor is | 410 Special case: "cw" and "cW" are treated like "ce" and "cE" if the cursor is |
411 on a non-blank. This is because "cw" is interpreted as change-word, and a | 411 on a non-blank. This is because "cw" is interpreted as change-word, and a |
412 word does not include the following white space. {Vi: "cw" when on a blank | 412 word does not include the following white space. |
413 followed by other blanks changes only the first blank; this is probably a | |
414 bug, because "dw" deletes all the blanks} | |
415 | 413 |
416 Another special case: When using the "w" motion in combination with an | 414 Another special case: When using the "w" motion in combination with an |
417 operator and the last word moved over is at the end of a line, the end of | 415 operator and the last word moved over is at the end of a line, the end of |
418 that word becomes the end of the operated text, not the first word in the | 416 that word becomes the end of the operated text, not the first word in the |
419 next line. | 417 next line. |
829 Lowercase marks can be used in combination with operators. For example: "d't" | 827 Lowercase marks can be used in combination with operators. For example: "d't" |
830 deletes the lines from the cursor position to mark 't'. Hint: Use mark 't' for | 828 deletes the lines from the cursor position to mark 't'. Hint: Use mark 't' for |
831 Top, 'b' for Bottom, etc.. Lowercase marks are restored when using undo and | 829 Top, 'b' for Bottom, etc.. Lowercase marks are restored when using undo and |
832 redo. | 830 redo. |
833 | 831 |
834 Uppercase marks 'A to 'Z include the file name. {Vi: no uppercase marks} You | 832 Uppercase marks 'A to 'Z include the file name. You can use them to jump from |
835 can use them to jump from file to file. You can only use an uppercase mark | 833 file to file. You can only use an uppercase mark with an operator if the mark |
836 with an operator if the mark is in the current file. The line number of the | 834 is in the current file. The line number of the mark remains correct, even if |
837 mark remains correct, even if you insert/delete lines or edit another file for | 835 you insert/delete lines or edit another file for a moment. When the 'viminfo' |
838 a moment. When the 'viminfo' option is not empty, uppercase marks are kept in | 836 option is not empty, uppercase marks are kept in the .viminfo file. See |
839 the .viminfo file. See |viminfo-file-marks|. | 837 |viminfo-file-marks|. |
840 | 838 |
841 Numbered marks '0 to '9 are quite different. They can not be set directly. | 839 Numbered marks '0 to '9 are quite different. They can not be set directly. |
842 They are only present when using a viminfo file |viminfo-file|. Basically '0 | 840 They are only present when using a viminfo file |viminfo-file|. Basically '0 |
843 is the location of the cursor when you last exited Vim, '1 the last but one | 841 is the location of the cursor when you last exited Vim, '1 the last but one |
844 time, etc. Use the "r" flag in 'viminfo' to specify files for which no | 842 time, etc. Use the "r" flag in 'viminfo' to specify files for which no |