Use placeholders in rebindings (v1.11.0)
masterStarting from version 1.11.0, VSCodeVim supports the use of placeholders within rebindings, allowing for more dynamic key mappings.
repository·master·Indexed 12 days ago
https://github.com/vscodevim/vimVim emulation for Visual Studio Code providing Vim-like keybindings, modes, and plugin emulation. Version 1.32.4 includes support for Neovim integration, .vimrc files, and emulations of popular plugins such as vim-easymotion, vim-surround, and vim-commentary.
surround functionality supports complex tags, allowing for more advanced text wrapping and manipulation.v0.11.0, the extension supports creating a file if the specified file does not already exist when using the :e (edit) command.When writing custom keybindings in keybindings.json, you can use the vim.mode context key to target specific modes.
Available mode strings:
NormalInsertVisualVisualBlockVisualLineSearchInProgressModeCommandlineInProgressReplaceEasyMotionModeEasyMotionInputModeSurroundInputModeOperatorPendingModeDisabled// Example: Apply a binding only in Normal or Visual mode
"when": "vim.mode == 'Normal' || vim.mode == 'Visual'"useCtrlKeys and handleKeys settings in your VS Code configuration.In versions v0.15.5 and v0.15.7, improvements were made to Neovim integration:
v0.15.7).v0.15.5).v0.15.7, VSCodeVim uses the standard VS Code configuration folder to store .cmdline_history. This ensures that command-line history is managed within the VS Code environment. Additionally, command-line history is moved to XDG_CACHE_HOME or %APPDATA% to follow platform-specific standards.v0.10.3, improvements were made to search functionality, including support for ^ and $, and the addition of a case sensitivity override.v0.11.0, the insert command was implemented to allow toggling between modes.