Unknown model· unknown
from ShareGPT 90K (shared ChatGPT conversations)
I'm using amVim extension in vscode and I can save file with :w but I want ZZ to save a…
Private research annotation
Sign in to add a private research label or note.
- User
I'm using amVim extension in vscode and I can save file with :w but I want ZZ to save a file. How do I configure that?
- Assistant
You can map ZZ to save file in vscode using the following steps:
- Open User Settings (File > Preferences > Settings or by pressing
Ctrl+,) - Search for
keybindings.jsonin the settings editor and click on "Edit in settings.json". - Add the following JSON code snippet to the
keybindings.jsonfile:
json{ "key": "zz", "command": "workbench.action.files.save", "when": "editorTextFocus && vim.mode == 'Normal'" }- Save the changes and restart vscode. Now you should be able to save a file in Normal mode by pressing ZZ.
- Open User Settings (File > Preferences > Settings or by pressing