From 27cafe5567bb5d1f6bfcaa9c720774f6ea16ac5d Mon Sep 17 00:00:00 2001 From: 5brian Date: Mon, 31 Mar 2025 15:19:55 -0400 Subject: [PATCH] vim: Add :options, :map (#27798) Add: - [:options](https://neovim.io/doc/user/options.html#%3Aoptions) to open default settings - :map to open default vim keymap These aren't exactly the same as vim but i think it's a good equivalent For map: I can't find the docs for :map with no arguments, since the map docs only shows the command bindings, but it opens the key mapping in vim. https://neovim.io/doc/user/vimindex.html ![image](https://github.com/user-attachments/assets/83aeebc4-e2e9-4818-890d-d307d5cee9b1) Release Notes: - vim: Added `:options` and `:map` --- crates/vim/src/command.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/vim/src/command.rs b/crates/vim/src/command.rs index 5989b1e8ed..4abb2b1ffa 100644 --- a/crates/vim/src/command.rs +++ b/crates/vim/src/command.rs @@ -882,6 +882,8 @@ fn generate_commands(_: &App) -> Vec { .bang(editor::actions::ReloadFile), VimCommand::new(("ex", ""), editor::actions::ReloadFile).bang(editor::actions::ReloadFile), VimCommand::new(("cpp", "link"), editor::actions::CopyPermalinkToLine).range(act_on_range), + VimCommand::str(("opt", "ions"), "zed::OpenDefaultSettings"), + VimCommand::str(("map", ""), "vim::OpenDefaultKeymap"), ] }