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

Normal mode remaps applied when entering commands while recording macro #259

Open
shanecb opened this issue Oct 21, 2019 · 0 comments
Open

Comments

@shanecb
Copy link

shanecb commented Oct 21, 2019

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 (fef0895) on Xcode 11.0

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