7
5

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 5 years have passed since last update.

IdeaVimで矩形選択(multiple cursors)

Last updated at Posted at 2018-11-05

IdeaVimのバージョン0.50からvim-multiple-cursorsと同等の機能が使えるようになったが、macOSで使用するにあたってはキーのリマップが必要だったので、その設定メモ。

手順
  1. IdeaVimプラグインのアップデート
  2. ~/.ideavimrcの作成 (必要であれば)
  3. 上記ファイルに下記を追加し、IDE内で:source ~/.ideavimrcして設定を反映する
set multiple-cursors
map <C-N>  <A-N>
map <C-P>  <A-P>
map <C-X>  <A-X>
map g<C-N> g<A-N>

Command + Nで同じワードを複数選択した例
Screenshot from Gyazo

参考
7
5
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
7
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?