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

IdeaVimのインサートモードでの範囲選択の挙動がおかしい

2
Posted at

PycharmでIdeavimを使ってみたら、インサートモード上で範囲選択(shfit+カーソル移動)をしようとすると、挙動がおかしくて困っていたら、とある方が対策を教えてくれたのでメモしておく。

対策としては、.ideavimrcに以下の記述を追加しておくだけ。

~/.ideavimrc

" SHIFT+カーソルキーで範囲選択(インサートモード)
inoremap <S-Left> <C-O>:action EditorLeftWithSelection<CR>
inoremap <S-Right> <C-O>:action EditorRightWithSelection<CR>
inoremap <S-Up> <C-O>:action EditorUpWithSelection<CR>
inoremap <S-Down> <C-O>:action EditorDownWithSelection<CR>

.ideavimrcをそもそも用意してなかったからどうせなんでいろいろ設定しようとしたけど、一番きいて欲しかったiminsert=0whichwrapがきいてくれなかった><

仕方ないから、ESC押してインサートモードから抜けて自動でIMEをオフにすることは、Google日本語入力側の設定でとりあえずやることに。

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?