LoginSignup
0
0

More than 1 year has passed since last update.

UbuntuのVim入力がおかしい場合は低機能版が原因かも

Posted at

現象

  1. Ubuntuのターミナルで vi ファイルパス でファイル編集。
  2. でも入力した通りにならない。
  3. 例えば、上矢印キー押すとAが入力されてしまう、右矢印キー押すとCが入力されてしまう、バックスペースキー押しても文字が消えない…といった症状。

Vimのバージョン確認

端末で vi --version

下記のように『Small Version』と表示されたら、Versionが原因。
(低機能なVimがインストールされている)
image.png

高機能なVimのインストール

端末で下記コマンド。

sudo apt-get install vim

事前にVimアンインストールやUbuntuの再起動は必要無し。

インストールが済んだら vi --version でVimのバージョン確認。
下記のように『Huge版』となっていればOK。
image.png

参考サイトさん

バージョン

Ubuntu 20.04.5 LTS

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