diff options
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/change.txt | 2 | ||||
| -rw-r--r-- | runtime/doc/map.txt | 25 | ||||
| -rw-r--r-- | runtime/doc/options.txt | 5 | ||||
| -rw-r--r-- | runtime/doc/undo.txt | 6 |
4 files changed, 28 insertions, 10 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index ccc1f59b93..571fbaec95 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -1207,7 +1207,7 @@ to their previous contents. When the '>' flag is present in 'cpoptions' then a line break is inserted before the appended text. 5. Read-only registers ":, ". and "% -These are '%', '#', ':' and '.'. You can use them only with the "p", "P", +These are '%', ':' and '.'. You can use them only with the "p", "P", and ":put" commands and with CTRL-R. *quote_.* *quote.* *E29* ". Contains the last inserted text (the same as what is inserted diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt index 9776304c8e..59a5a63e16 100644 --- a/runtime/doc/map.txt +++ b/runtime/doc/map.txt @@ -48,6 +48,7 @@ modes. allows for nested and recursive use of mappings. Note: Trailing spaces are included in the {rhs}, because space is a valid Normal mode command. + See |map-trailing-white|. *:nore* *:norem* :no[remap] {lhs} {rhs} |mapmode-nvo| *:no* *:noremap* *:nor* @@ -85,10 +86,8 @@ modes. for other modes where it applies. It also works when {lhs} matches the {rhs} of a mapping. This is for when an abbreviation applied. - Note: Trailing spaces are included in the {lhs}. This - unmap does NOT work: > - :map @@ foo - :unmap @@ | print + Note: Trailing spaces are included in the {lhs}. + See |map-trailing-white|. :mapc[lear] |mapmode-nvo| *:mapc* *:mapclear* :nmapc[lear] |mapmode-n| *:nmapc* *:nmapclear* @@ -152,6 +151,24 @@ that mapping won't get expanded yet, Vim is waiting for another character. If you type a space, then "foo" will get inserted, plus the space. If you type "a", then "bar" will get inserted. +Trailing white space ~ + *map-trailing-white* +This unmap command does NOT work: > + :map @@ foo + :unmap @@ | print + +Because it tries to unmap "@@ ", including the white space before the command +separator "|". Other examples with trailing white space: > + unmap @@ + unmap @@ " comment + +An error will be issued, which is very hard to identify, because the ending +whitespace character in `unmap @@ ` is not visible. + +A generic solution is to put the command separator "|" right after the mapped +keys. After that white space and a comment may follow: > + unmap @@| " comment + 1.2 SPECIAL ARGUMENTS *:map-arguments* diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 6a87e482ef..bd484366db 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -6063,10 +6063,9 @@ A jump table for the options with a short description can be found at |Q_op|. If the statusline is not updated when you want it (e.g., after setting a variable that's used in an expression), you can force an update by - setting an option without changing its value. Example: > - :let &ro = &ro + using `:redrawstatus`. -< A result of all digits is regarded a number for display purposes. + A result of all digits is regarded a number for display purposes. Otherwise the result is taken as flag text and applied to the rules described above. diff --git a/runtime/doc/undo.txt b/runtime/doc/undo.txt index 39b26476af..67f24103cd 100644 --- a/runtime/doc/undo.txt +++ b/runtime/doc/undo.txt @@ -108,12 +108,14 @@ change again. But you can do something like this: > After this a "u" command will undo the delete command and the previous change. - + *undo-break* To do the opposite, break a change into two undo blocks, in Insert mode use CTRL-G u. This is useful if you want an insert command to be undoable in parts. E.g., for each sentence. |i_CTRL-G_u| + Setting the value of 'undolevels' also breaks undo. Even when the new value -is equal to the old value. +is equal to the old value: > + let &undolevels = &undolevels ============================================================================== 4. Undo branches *undo-branches* *undo-tree* |