mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 23:48:32 +00:00
feat: defaults: set undo points in <C-U> and <C-W> (#15400)
This commit is contained in:
@@ -841,6 +841,14 @@ static void init_typebuf(void)
|
||||
}
|
||||
}
|
||||
|
||||
void init_default_mappings(void)
|
||||
{
|
||||
add_map((char_u *)"Y y$", NORMAL, true);
|
||||
add_map((char_u *)"<C-L> <Cmd>nohlsearch<Bar>diffupdate<CR><C-L>", NORMAL, true);
|
||||
add_map((char_u *)"<C-U> <C-G>u<C-U>", INSERT, true);
|
||||
add_map((char_u *)"<C-W> <C-G>u<C-W>", INSERT, true);
|
||||
}
|
||||
|
||||
// Insert a string in position 'offset' in the typeahead buffer (for "@r"
|
||||
// and ":normal" command, vgetorpeek() and check_termcode())
|
||||
//
|
||||
|
@@ -397,12 +397,6 @@ void init_normal_cmds(void)
|
||||
nv_max_linear = i - 1;
|
||||
}
|
||||
|
||||
void init_default_mappings(void)
|
||||
{
|
||||
add_map((char_u *)"Y y$", NORMAL, true);
|
||||
add_map((char_u *)"<C-L> <Cmd>nohlsearch<Bar>diffupdate<CR><C-L>", NORMAL, true);
|
||||
}
|
||||
|
||||
/*
|
||||
* Search for a command in the commands table.
|
||||
* Returns -1 for invalid command.
|
||||
|
@@ -27,6 +27,8 @@ set switchbuf=
|
||||
" Unmap Nvim default mappings.
|
||||
unmap Y
|
||||
unmap <C-L>
|
||||
iunmap <C-U>
|
||||
iunmap <C-W>
|
||||
|
||||
" Prevent Nvim log from writing to stderr.
|
||||
let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log'
|
||||
|
Reference in New Issue
Block a user