Help us understand the problem. What is going on with this article?

vscode vim でInsertモードでカーソルを移動する

環境

  • vscode 1.41.1
  • vscodevim 1.12.0
  • macOS Mojave 10.14.6

目的

  • Insert モードでカーソルを移動したかった(生粋のvimmer に怒られるかも...)

方法

コマンドパレット開く(⌘P) > settings.json 検索 > settings.json に下記を記述

keybindings.son
[
    {
        "key": "cmd+l",
        "command": "cursorRight",
        "when": "editorTextFocus && !editorReadOnly"
    },
    {
        "key": "cmd+h",
        "command": "cursorLeft",
        "when": "editorTextFocus && !editorReadOnly"
    },
    {
        "key": "cmd+j",
        "command": "cursorUp",
        "when": "editorTextFocus && !editorReadOnly"
    },
    {
        "key": "cmd+k",
        "command": "cursorDown",
        "when": "editorTextFocus && !editorReadOnly"
    },
]

詳細

  • cmd + l or h or j or k でInsertモードでもカーソルを移動できる

感想

勝手に挿入される)"を以前は

  1. ctrl + oで一時的にInsertモード抜ける
  2. aで1文字スキップした状態でInsertモードに戻って続きを入力

という方法でやっていましたが、ちょっとスッキリしました。

Insertモード中に1文字スキップさせる方法が私には見つける事ができなかったので、もし他に方法があるなら是非教えて頂きたいです!!

karlley
webエンジニアへの転職を目指してRuby/Railsを中心に勉強中。 独学で勉強してるので記事への指摘やコメントなどはどんどんお願いします!!
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした