Zed Editor
Intro
|
vim mode
Assume everything written here works with vim-mode enabled. |
Moving between panes
Open a terminal on the right side. Switch from the main editor buffer to the terminal with C-w C-w.
Map these:
-
“workspace: activate pane left” to C-k h.
-
“workspace: activate pane right” to C-k l.
Bottom dock
When on the terminal, C-j opens the “bottom dock”.
Because I use fzf with its many vim-like keymaps, open the keymap editor and remove or change the keybinding for “toggle bottom dock”.
Git
Next and previous changes (hunks)
I set C-[ n and C-[ p to next and previous git change. Looks like the vim mode has [-c and ]-c for next and previous git changes by default.
Diff current change under cursor (hunk)
C-' diffs the current hunk. On my br-abnt2 keyboard, C-S-~ does the same.