LoginSignup
0
0

More than 5 years have passed since last update.

vimエディタでカーソルキー(矢印)が使えない場合

Last updated at Posted at 2019-01-28

互換モードがオンになっている場合に,カーソルキーが使えない。
これは古いviエディタに対する互換性のことである。
古いviエディタは,挿入モードのときにカーソルキーが使えなかった。
h, j, k, lで移動していたためである。

そこで,ホームディレクトリに.vimrcファイルを作成して,以下の設定を書き込む。

echo "set nocompatible" >> ~/.vimrc
.vimrc
set nocompatible
0
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
0
0