I'm moving from Emacs to Neovim and still like a few things in Emacs functionality.
One of the things I find I would like is to stay in insert mode when I'm typing large documents (instead of constantly going back and forth).
One of the things I have remapped is:
inoremap <C-/> <C-\><C-o>:u<cr>
which reverses everything one by one when C-/
is pressed.
However, I want to only have this go on for a second unless there has been a C-/
pressed in that time interval, otherwise I want to undo the (undone) change that I have made. Is there a way to do this?
Thanks!
u
and<C-r>
handle undo and redo from Normal mode? What’s missing?