diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-05 18:13:34 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-05 18:13:34 +0200 |
commit | 25c9c680ec4dfbb51f4ef21c3460a48d3c67ffc8 (patch) | |
tree | 0b70444195e194bf5c99df419361bc2052373c02 /runtime/doc/insert.txt | |
parent | 9a061cb78ccbf78ec9ae454d37a49edccb4e94fc (diff) | |
download | vim-git-25c9c680ec4dfbb51f4ef21c3460a48d3c67ffc8.tar.gz |
patch 8.1.1280: remarks about functionality not in Vi clutters the helpv8.1.1280
Problem: Remarks about functionality not in Vi clutters the help.
Solution: Move all info about what is new in Vim or already existed in Vi to
vi_diff.txt. Remove {not in Vi} remarks. (closes #4268) Add
"noet" to the help files modeline. Also include many other help
file improvements.
Diffstat (limited to 'runtime/doc/insert.txt')
-rw-r--r-- | runtime/doc/insert.txt | 46 |
1 files changed, 18 insertions, 28 deletions
diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt index 9d7e4ced4..e962343a0 100644 --- a/runtime/doc/insert.txt +++ b/runtime/doc/insert.txt @@ -1,4 +1,4 @@ -*insert.txt* For Vim version 8.1. Last change: 2019 Apr 06 +*insert.txt* For Vim version 8.1. Last change: 2019 May 05 VIM REFERENCE MANUAL by Bram Moolenaar @@ -62,7 +62,7 @@ CTRL-C Quit insert mode, go back to Normal mode. Do not check for CTRL-@ Insert previously inserted text and stop insert. {Vi: only when typed as first char, only up to 128 chars} *i_CTRL-A* -CTRL-A Insert previously inserted text. {not in Vi} +CTRL-A Insert previously inserted text. *i_CTRL-H* *i_<BS>* *i_BS* <BS> or CTRL-H Delete the character before the cursor (see |i_backspacing| @@ -75,7 +75,6 @@ CTRL-A Insert previously inserted text. {not in Vi} "eol", delete the <EOL>; the next line is appended after the current one. See |:fixdel| if your <Del> key does not do what you want. - {not in Vi} *i_CTRL-W* CTRL-W Delete the word before the cursor (see |i_backspacing| about joining lines). See the section "word motions", @@ -102,10 +101,10 @@ CTRL-K {char1} [char2] key, the code for that key is inserted in <> form. For example, the string "<S-Space>" can be entered by typing <C-K><S-Space> (two keys). Neither char is considered for - mapping. {not in Vi} + mapping. -CTRL-N Find next keyword (see |i_CTRL-N|). {not in Vi} -CTRL-P Find previous keyword (see |i_CTRL-P|). {not in Vi} +CTRL-N Find next keyword (see |i_CTRL-N|). +CTRL-P Find previous keyword (see |i_CTRL-P|). CTRL-R {0-9a-z"%#*+:.-=} *i_CTRL-R* Insert the contents of a register. Between typing CTRL-R and @@ -142,7 +141,7 @@ CTRL-R {0-9a-z"%#*+:.-=} *i_CTRL-R* converted to a String. When append() or setline() is invoked the undo sequence will be broken. - See |registers| about registers. {not in Vi} + See |registers| about registers. CTRL-R CTRL-R {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-R* Insert the contents of a register. Works like using a single @@ -154,7 +153,7 @@ CTRL-R CTRL-R {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-R* < Options 'textwidth', 'formatoptions', etc. still apply. If you also want to avoid these, use CTRL-R CTRL-O, see below. The '.' register (last inserted text) is still inserted as - typed. {not in Vi} + typed. CTRL-R CTRL-O {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-O* Insert the contents of a register literally and don't @@ -163,14 +162,14 @@ CTRL-R CTRL-O {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-O* insert the text above the current line, like with `P`. Does not replace characters! The '.' register (last inserted text) is still inserted as - typed. {not in Vi} + typed. CTRL-R CTRL-P {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-P* Insert the contents of a register literally and fix the indent, like |[<MiddleMouse>|. Does not replace characters! The '.' register (last inserted text) is still inserted as - typed. {not in Vi} + typed. *i_CTRL-T* CTRL-T Insert one shiftwidth of indent at the start of the current @@ -206,12 +205,12 @@ CTRL-Q Same as CTRL-V. CTRL-X Enter CTRL-X mode. This is a sub-mode where commands can be given to complete words or scroll the window. See - |i_CTRL-X| and |ins-completion|. {not in Vi} + |i_CTRL-X| and |ins-completion|. *i_CTRL-E* -CTRL-E Insert the character which is below the cursor. {not in Vi} +CTRL-E Insert the character which is below the cursor. *i_CTRL-Y* -CTRL-Y Insert the character which is above the cursor. {not in Vi} +CTRL-Y Insert the character which is above the cursor. Note that for CTRL-E and CTRL-Y 'textwidth' is not used, to be able to copy characters from a long line. @@ -228,7 +227,6 @@ CTRL-_ Switch between languages, as follows: is set. Please refer to |rileft.txt| for more information about right-to-left mode. - {not in Vi} Only if compiled with the |+rightleft| feature. *i_CTRL-^* @@ -248,14 +246,12 @@ CTRL-^ Toggle the use of typing language characters. The language mappings are normally used to type characters that are different from what the keyboard produces. The 'keymap' option can be used to install a whole number of them. - {not in Vi} *i_CTRL-]* -CTRL-] Trigger abbreviation, without inserting a character. {not in - Vi} +CTRL-] Trigger abbreviation, without inserting a character. *i_<Insert>* -<Insert> Toggle between Insert and Replace mode. {not in Vi} +<Insert> Toggle between Insert and Replace mode. ----------------------------------------------------------------------- *i_backspacing* @@ -519,15 +515,14 @@ The 'expandtab' option is off by default. Note that in Replace mode, a single character is replaced with several spaces. The result of this is that the number of characters in the line increases. Backspacing will delete one space at a time. The original character will be put back for only one space -that you backspace over (the last one). {Vi does not have the 'expandtab' -option} +that you backspace over (the last one). *ins-smarttab* When the 'smarttab' option is on, a <Tab> inserts 'shiftwidth' positions at the beginning of a line and 'tabstop' positions in other places. This means that often spaces instead of a <Tab> character are inserted. When 'smarttab' is off, a <Tab> always inserts 'tabstop' positions, and 'shiftwidth' is only -used for ">>" and the like. {not in Vi} +used for ">>" and the like. *ins-softtabstop* When the 'softtabstop' option is non-zero, a <Tab> inserts 'softtabstop' @@ -567,14 +562,13 @@ If the 'expandtab' option is on, a <Tab> will replace one character with several spaces. The result of this is that the number of characters in the line increases. Backspacing will delete one space at a time. The original character will be put back for only one space that you backspace over (the -last one). {Vi does not have the 'expandtab' option} +last one). ============================================================================== 6. Virtual Replace mode *vreplace-mode* *Virtual-Replace-mode* Enter Virtual Replace mode with the "gR" command in normal mode. {not available when compiled without the |+vreplace| feature} -{Vi does not have Virtual Replace mode} Virtual Replace mode is similar to Replace mode, but instead of replacing actual characters in the file, you are replacing screen real estate, so that @@ -1807,7 +1801,7 @@ I Insert text before the first non-blank in the line the last blank. *gI* -gI Insert text in column 1 [count] times. {not in Vi} +gI Insert text in column 1 [count] times. *gi* gi Insert text in the same position as where Insert mode @@ -1818,7 +1812,6 @@ gi Insert text in the same position as where Insert mode but NOT for inserted/deleted characters. When the |:keepjumps| command modifier is used the |'^| mark won't be changed. - {not in Vi} *o* o Begin a new line below the cursor and insert text, @@ -1885,7 +1878,6 @@ NOTE: These commands cannot be used with |:global| or |:vglobal|. script, the insertion only starts after the function or script is finished. This command does not work from |:normal|. - {not in Vi} *:stopi* *:stopinsert* :stopi[nsert] Stop Insert mode as soon as possible. Works like @@ -1902,12 +1894,10 @@ NOTE: These commands cannot be used with |:global| or |:vglobal|. Note that when using this command in a function or script that the replacement will only start after the function or script is finished. - {not in Vi} *:startgreplace* :startg[replace][!] Just like |:startreplace|, but use Virtual Replace mode, like with |gR|. - {not in Vi} ============================================================================== 10. Inserting a file *inserting-file* |