LoginSignup
1
0

More than 5 years have passed since last update.

Atomのvim-mode-plusでインサートモード中にカーソルを移動したい

Posted at

やりたいこと

vim-mode-plus使用中にインサートモードでもカーソルを動かしたい
動かしたいとは言ったがノーマルモードに戻って、カーソル移動して再度インサートモードにはしたくない
さらにMacの十字キーは右下で遠いから手を動かしたくない
かといってctrl-f,b,u,dで移動は頭が混乱するから使いたくない

やったこと

vim-mode-plusのkeymap.csonファイルに以下を追加する

'atom-text-editor.vim-mode-plus.insert-mode':
  'ctrl-h': 'vim-mode-plus:move-left'
  'ctrl-l': 'vim-mode-plus:move-right'
  'ctrl-j': 'vim-mode-plus:move-down'
  'ctrl-k': 'vim-mode-plus:move-up' 

参考にした記事

[Atom]vim-mode-plusでESCにキーマップを割り当てる

1
0
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
1
0