zed
zed copied to clipboard
Emulate vim-commentary
Check for existing issues
- [X] Completed
Describe the feature
When vim mode is enabled, gcc should comment/uncomment the selected line, and in visual mode gc should comment/uncomment all selected lines and then deselect. The VS Code vim plugin did this and I miss it.
If applicable, add mockups / screenshots to help present your vision of the feature
No response
Hey there! I have the following in my keymap.json (because I missed that functionality too) and it works pretty well for me:
{
"context": "Editor && vim_mode == normal",
"bindings": {
"g c c": "editor::ToggleComments"
}
},
{
"context": "Editor && vim_mode == visual",
"bindings": {
"g c": "editor::ToggleComments"
}
},
That's good enough for me