mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 23:48:32 +00:00
vim-patch:9.1.1408: not easily possible to complete from register content (#34198)
Problem: not easily possible to complete from register content
Solution: add register-completion submode using i_CTRL-X_CTRL-R
(glepnir)
closes: vim/vim#17354
0546068aae
This commit is contained in:
@@ -796,6 +796,10 @@ static int insert_handle_key(InsertState *s)
|
||||
break;
|
||||
|
||||
case Ctrl_R: // insert the contents of a register
|
||||
if (ctrl_x_mode_register() && !ins_compl_active()) {
|
||||
insert_do_complete(s);
|
||||
break;
|
||||
}
|
||||
ins_reg();
|
||||
auto_format(false, true);
|
||||
s->inserted_space = false;
|
||||
|
Reference in New Issue
Block a user