mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
feat(defaults): nnoremap & :&&<CR> #19365
This commit is contained in:
parent
c0ae3df052
commit
1c9f487f0e
@ -633,6 +633,9 @@ Directory for temporary files is created in the first possible directory of:
|
||||
actually work differently. You can use `:&&` to keep
|
||||
the flags.
|
||||
|
||||
*&-default*
|
||||
Mapped to ":&&<CR>" by default. |default-mappings|
|
||||
|
||||
*g&*
|
||||
g& Synonym for `:%s//~/&` (repeat last substitute with
|
||||
last search pattern on all lines with the same flags).
|
||||
|
@ -89,6 +89,7 @@ of these in your config by simply removing the mapping, e.g. ":unmap Y".
|
||||
inoremap <C-W> <C-G>u<C-W>
|
||||
xnoremap * y/\V<C-R>"<CR>
|
||||
xnoremap # y?\V<C-R>"<CR>
|
||||
nnoremap & :&&<CR>
|
||||
<
|
||||
Default Autocommands ~
|
||||
*default-autocmds*
|
||||
|
@ -2125,6 +2125,10 @@ void init_default_mappings(void)
|
||||
add_map("<C-W>", "<C-G>u<C-W>", MODE_INSERT, false);
|
||||
add_map("*", "y/\\\\V<C-R>\"<CR>", MODE_VISUAL, false);
|
||||
add_map("#", "y?\\\\V<C-R>\"<CR>", MODE_VISUAL, false);
|
||||
|
||||
// Use : instead of <Cmd> so that ranges are supported (e.g. 3& repeats the substitution on the
|
||||
// next 3 lines)
|
||||
add_map("&", ":&&<CR>", MODE_NORMAL, false);
|
||||
}
|
||||
|
||||
/// Add a mapping. Unlike @ref do_map this copies the string arguments, so
|
||||
|
Loading…
Reference in New Issue
Block a user