Mercurial > vim
comparison runtime/doc/visual.txt @ 29236:0eef32b4ebbc
Update runtime files
Commit: https://github.com/vim/vim/commit/d799daa660b8821943cbe1682f00da9e812dd48c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 20 11:17:32 2022 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 20 Jun 2022 12:30:06 +0200 |
parents | b96ceb97e896 |
children | f8116058ca76 |
comparison
equal
deleted
inserted
replaced
29235:fbcbc953c2ec | 29236:0eef32b4ebbc |
---|---|
1 *visual.txt* For Vim version 8.2. Last change: 2022 May 06 | 1 *visual.txt* For Vim version 8.2. Last change: 2022 Jun 18 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
507 When mappings and menus are defined with the |:vmap| or |:vmenu| command they | 507 When mappings and menus are defined with the |:vmap| or |:vmenu| command they |
508 work both in Visual mode and in Select mode. When these are used in Select | 508 work both in Visual mode and in Select mode. When these are used in Select |
509 mode Vim automatically switches to Visual mode, so that the same behavior as | 509 mode Vim automatically switches to Visual mode, so that the same behavior as |
510 in Visual mode is effective. If you don't want this use |:xmap| or |:smap|. | 510 in Visual mode is effective. If you don't want this use |:xmap| or |:smap|. |
511 | 511 |
512 One particular edge case: > | |
513 :vnoremap <C-K> <Esc> | |
514 This ends Visual mode when in Visual mode, but in Select mode it does not | |
515 work, because Select mode is restored after executing the mapped keys. You | |
516 need to use: > | |
517 :snoremap <C-K> <Esc> | |
518 < | |
512 Users will expect printable characters to replace the selected area. | 519 Users will expect printable characters to replace the selected area. |
513 Therefore avoid mapping printable characters in Select mode. Or use | 520 Therefore avoid mapping printable characters in Select mode. Or use |
514 |:sunmap| after |:map| and |:vmap| to remove it for Select mode. | 521 |:sunmap| after |:map| and |:vmap| to remove it for Select mode. |
515 | 522 |
516 After the mapping or menu finishes, the selection is enabled again and Select | 523 After the mapping or menu finishes, the selection is enabled again and Select |