LoginSignup
4
2

More than 3 years have passed since last update.

Visual Studio Code + Vim拡張で行端のカーソル移動設定

Last updated at Posted at 2017-11-06

いつの間にかwhichwrap設定が追加されていた。ありがたや。
https://github.com/VSCodeVim/Vim#vim-settings

Setting Description
vim.whichwrap (略)To wrap "everything", set this to h,l,<,>,[,].

Visual Studio CodeにVim拡張を入れて使用しているが、行頭左移動で前の行末、行末右移動で次の行頭に移動したいと思った。
keybindings.jsonから次の設定を削除した(左の例だが右も同様に削除する)。

{
  "command": "extension.vim_left",
  "key": "left",
  "when": "editorTextFocus && vim.active && !inDebugRepl"
}

これでカーソルキーによる移動については実現できた。
Vimなので、肝心なのはhlなのだが…

whichwrapに対応する設定がVSCodeのVim拡張には現在は存在しない。
https://github.com/VSCodeVim/Vim/issues/1211

4
2
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
4
2