2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

この記事誰得? 私しか得しないニッチな技術で記事投稿!

vscode vim Ctrl + キー と x と dd でヤンクを無効にする

Last updated at Posted at 2023-06-26

vscode vim Ctrl + キー と x と dd でヤンクを無効にする

どうしても windows を触る機会が多いので vim のキー操作になれ始めてもまたWindowsにキー操作に戻ってしまい一行に生産性が上がらない。

vim での Ctrl+Key は無効にすると決めた。

vim キーバインド無効

VSCode のメニューより
File > Preferences > settings
Search settings の入力欄に vim.handleKeys と入力し
Edit in settings.json のリンクを押下
以下の記入する。

  "vim.handleKeys": {
    "<C-a>": false,
    "<C-f>": false,
    "<C-n>": false,
    "<C-c>": false,
    "<C-x>": false,
    "<C-v>": false,
    "<C-b>": false,
    "<C-j>": false,
    "<C-k>": false,
    "<C-d>": false,
    "<C-s>": false,
    "<C-z>": false
  }

x と dd でヤンクしない

VSCode のメニューより
File > Preferences > settings
Search settings の入力欄に vim.handleKeys と入力し
Edit in settings.json のリンクを押下
以下の記入する。

  "vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": ["x"],
      "after": ["\"", "_", "x"]
    },
    {
      "before": ["d","d"],
      "after": ["\"", "_", "d","d"]
    }
  ]

以上。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?