Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recording to registers with custom escape mapping #149

Open
auwsmit opened this issue Oct 25, 2017 · 0 comments
Open

Recording to registers with custom escape mapping #149

auwsmit opened this issue Oct 25, 2017 · 0 comments

Comments

@auwsmit
Copy link

auwsmit commented Oct 25, 2017

I have this mapping in my vimrc: inoremap <C-G> <Esc> which seems to be causing a bug with incsearch.

So, with that mapping, here's how to reproduce this error:

  1. Mark origin point mm
  2. Record to a register qq
  3. Search for any valid word /foo
  4. Enter insert or replace mode in any way, i or c or R, etc
  5. Enter any text bar
  6. Exit insert mode via <C-g> (or any user-mapped <Esc> equivalent)
  7. End recording q
  8. Undo all changes u
  9. Go back to start `m
  10. Play back recording @q

When playing back the recording, it adds the text (_incsearch-hlsearch) while in insert mode, thus breaking the recording. This doesn't happen with regular <Esc> or <C-[>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant