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

Vim Mode: exit insert mode on file save #18264

Closed
1 task done
kraftwer1 opened this issue Sep 24, 2024 · 1 comment
Closed
1 task done

Vim Mode: exit insert mode on file save #18264

kraftwer1 opened this issue Sep 24, 2024 · 1 comment
Labels
feature [core label] keybinds Keyboard shortcuts, mapping, binding, keymaps, etc vim

Comments

@kraftwer1
Copy link

Check for existing issues

  • Completed

Describe the feature

I'd find it super handy if saving the file (e.g. using cmd-s) would leave insert mode and switch back to normal mode. But maybe that's just me. What do others think of that?

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@JosephTLyons JosephTLyons added vim keybinds Keyboard shortcuts, mapping, binding, keymaps, etc and removed triage labels Oct 1, 2024
@ConradIrwin
Copy link
Member

@kraftwer1 you can achieve this by adding the following to your key bindings file:

[{
  "context": "vim_mode == insert",
  "bindings": {"cmd-s": ["workspace::SendKeystrokes", "escape cmd-s"]}
}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature [core label] keybinds Keyboard shortcuts, mapping, binding, keymaps, etc vim
Projects
None yet
Development

No branches or pull requests

3 participants