Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Vim smorgasbord (#12222)
Conrad Irwin656edc4b2e12
diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.jsonindex cea64b68433..045beffeced 100644--- a/assets/keymaps/vim.json+++ b/assets/keymaps/vim.json@@ -155,6 +155,7 @@"g shift-t": "pane::ActivatePrevItem","g d": "editor::GoToDefinition","g shift-d": "editor::GoToTypeDefinition",+ "g cmd-d": "editor::GoToImplementation","g x": "editor::OpenUrl","g n": "vim::SelectNextMatch","g shift-n": "vim::SelectPreviousMatch",@@ -384,7 +385,11 @@"ctrl-pageup": "pane::ActivatePrevItem",// tree-sitter related commands"[ x": "editor::SelectLargerSyntaxNode",- "] x": "editor::SelectSmallerSyntaxNode"+ "] x": "editor::SelectSmallerSyntaxNode",+ "] d": "editor::GoToDiagnostic",+ "[ d": "editor::GoToPrevDiagnostic",+ "] c": "editor::GoToHunk",+ "[ c": "editor::GoToPrevHunk"}},{diff --git a/docs/src/vim.md b/docs/src/vim.mdindex 600317a8381..b66178c3816 100644--- a/docs/src/vim.md+++ b/docs/src/vim.md@@ -16,10 +16,11 @@ Vim mode has several "core Zed" key bindings, that will help you make the most o```# Language server-g d Go to definition-g D Go to type definition-c d Rename (change definition)-g A Go to All references to the current word+g d Go to definition+g D Go to type definition+g cmd-d Go to implementation+c d Rename (change definition)+g A Go to All references to the current wordg s Find symbol in current fileg S Find symbol in entire project@@ -29,6 +30,10 @@ g [ Go to previous diagnosticg h Show inline error (hover)g . Open the code actions menu+# Git+] c Go to previous git change+[ c Go to next git change+# Treesitter] x Select a smaller syntax node[ x Select a larger syntax node@@ -190,6 +195,9 @@ Currently supported vim-specific commands:As any Zed command is available, you may find that it's helpful to remember mnemonics that run the correct command. For example:```+:diff Toggle Hunk [Diff]+:diffs Toggle all Hunk [Diffs]+:revert Revert Selected Hunks:cpp [C]o[p]y [P]ath to file:crp [C]opy [r]elative [P]ath:reveal [Reveal] in finder