XVim2 icon indicating copy to clipboard operation
XVim2 copied to clipboard

Normal mode remaps applied when entering commands while recording macro

Open shanecb opened this issue 6 years ago • 0 comments

Summary

When recording a macro, if you type in a command (or search), XVim uses normal mode remaps instead of command mode remaps (which can be a pretty big problem if you remap <CR> to G in normal mode, for example).

Steps to Reproduce

  1. Create a normal mode remap in your .xvimrc (for example nnoremap <CR> G)
  2. Open Xcode
  3. Start recording a macro
  4. Enter a command or search term
  5. Try typing the key that you remapped in your .xvimrc
  6. Observe that the mapping is applied even though you aren't (supposed to be) in normal mode

Expected Result

The key is not remapped since you should be in command mode, not normal mode.

Actual Result

The key is remapped according to the mapping you set in your .xvimrc.

More Info

Running latest develop (fef08952b1f3725b3c0d0727a149a3113819f706) on Xcode 11.0

shanecb avatar Oct 21 '19 19:10 shanecb