LoginSignup
2
1

More than 5 years have passed since last update.

VSCodeのVim拡張機能で検索入力時のCtrl+hの挙動を変える

Posted at

VSCodeのVim拡張機能で検索コマンド/で検索文字列を入力した後に検索文字列を修正したい場合、Ctrl+hで削除しようとすると検索文字列ではなくエディタの文字が削除されてしまうので以下の対応をした。

keybindings.jsonに追加

{
    "key": "ctrl+h",
    "command": "extension.vim_backspace",
    "when": "editorTextFocus && vim.active && !inDebugRepl && vim.mode !='Insert'"
}
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1