XVim2
XVim2 copied to clipboard
Normal mode remaps applied when entering commands while recording macro
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
- Create a normal mode remap in your .xvimrc (for example
nnoremap <CR> G) - Open Xcode
- Start recording a macro
- Enter a command or search term
- Try typing the key that you remapped in your .xvimrc
- 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