feat: defaults: set undo points in <C-U> and <C-W> (#15400)

This commit is contained in:
Gregory Anders
2021-08-16 19:28:52 -06:00
committed by GitHub
parent 3954537b9e
commit 2cb8db34e3
6 changed files with 20 additions and 6 deletions

View File

@@ -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())
//