Quantcast
Viewing all articles
Browse latest Browse all 5712

vim で挿入モードのまま左右に移動する

方法

以下を .vimrc に追加することで、ctrl+h で左に移動、ctrl+l で右に移動できるようになる。

inoremap ^H ^[hainoremap ^L ^[la

解説

ctrl+h を押したときに挿入モード離脱->左に移動->挿入モードに戻るという動作をするようにしている。


Viewing all articles
Browse latest Browse all 5712

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>