mirror of
https://github.com/neovim/neovim.git
synced 2026-08-31 03:13:48 +00:00
feat: defaults: set undo points in <C-U> and <C-W> (#15400)
This commit is contained in:
@@ -68,12 +68,18 @@ CTRL-A Insert previously inserted text.
|
||||
CTRL-W Delete the word before the cursor (see |i_backspacing| about
|
||||
joining lines). See the section "word motions",
|
||||
|word-motions|, for the definition of a word.
|
||||
*i_CTRL-W-default*
|
||||
By default, sets a new undo point before deleting.
|
||||
|default-mappings|
|
||||
*i_CTRL-U*
|
||||
CTRL-U Delete all entered characters before the cursor in the current
|
||||
line. If there are no newly entered characters and
|
||||
'backspace' is not empty, delete all characters before the
|
||||
cursor in the current line.
|
||||
See |i_backspacing| about joining lines.
|
||||
*i_CTRL-U-default*
|
||||
By default, sets a new undo point before deleting.
|
||||
|default-mappings|
|
||||
*i_CTRL-I* *i_<Tab>* *i_Tab*
|
||||
<Tab> or CTRL-I Insert a tab. If the 'expandtab' option is on, the
|
||||
equivalent number of spaces is inserted (use CTRL-V <Tab> to
|
||||
|
||||
@@ -78,6 +78,8 @@ Default Mappings: *default-mappings*
|
||||
|
||||
nnoremap Y y$
|
||||
nnoremap <C-L> <Cmd>nohlsearch<Bar>diffupdate<CR><C-L>
|
||||
inoremap <C-U> <C-G>u<C-U>
|
||||
inoremap <C-W> <C-G>u<C-W>
|
||||
|
||||
==============================================================================
|
||||
3. New Features *nvim-features*
|
||||
|
||||
Reference in New Issue
Block a user