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

:u should undo #3197

Closed
mchong-teal opened this issue Nov 6, 2018 · 4 comments
Closed

:u should undo #3197

mchong-teal opened this issue Nov 6, 2018 · 4 comments
Labels

Comments

@mchong-teal
Copy link

mchong-teal commented Nov 6, 2018

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I use :u to undo changes in vim:
http://vimhelp.appspot.com/undo.txt.html#undo

Entering the command ':u' does not undo, and instead prints the message 'E492 Not an editor command. u'. I have not been able to find clear documentation on how to change that setting, and it appears in the most recent update the 'otherModesKeyBindings' setting was removed.

The first time this happened to me I immediately uninstalled the extension. It makes me consider uninstalling every time I try and perform an undo action.

Describe the solution you'd like
Entering the command :u[ndo] will undo one change. For bonus points, :u[ndo] {N} jumps to after change number {N}.

Describe alternatives you've considered
Add clear documentation for binding the undo command to :u in command line mode now that 'otherModesKeyBindings' is not available.

Additional context
None

@jpoon
Copy link
Member

jpoon commented Dec 30, 2018

Although fraught with bugs, undo is a supported operation. What are the exact key presses you are pressing to elicit a E492: Not an editor command?

@mchong-teal
Copy link
Author

  • Open new file (in normal mode)
  • press i (to insert mode)
  • type something (or do the thing to be undone)
  • press esc (back to normal mode)
  • type :, press u, press enter (should undo)

^ doing the above in vim undoes the action (expected behaviour), but displays the above error in vscode.

@mchong-teal
Copy link
Author

This is on v0.17.3 (2018-12-30), with vscode Version: 1.30.1.

@mchong-teal
Copy link
Author

vscode-vim-undo
vim-undo

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

No branches or pull requests

3 participants