LoginSignup
5
1

More than 3 years have passed since last update.

VirtualBox上のvimから抜けられなくなった話

Last updated at Posted at 2019-10-09

VirtualBox上のviから抜けられなくなった

背景

teratermからssh接続できなかったので、VirtualBox上でsshd_configいじっていたところ。。

事象

いつもの感覚で :q! しようとしたら

E20: Mark not set

と出て何やっても抜けられない

原因

キーボード配列がUSになってた

USでの : = shift + ;

再発防止

Linux上のキーボード+Locale設定

言語設定を日本語にする

[root@cent7 xorg.conf.d]# localectl set-locale LANG=ja_JP.utf8

キーボードを日本語にする

[root@cent7 xorg.conf.d]# localectl set-keymap jp106
[root@cent7 xorg.conf.d]# localectl set-keymap jp-OADG109A

管理ファイル実体

00-keyboard.conf

vi /etc/X11/xorg.conf.d/00-keyboard.conf

# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "jp"
        Option "XkbModel" "jp106"
        Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

参考

【 localectl 】 システムのロケールやキーボードレイアウトを管理する 【 Linuxコマンドまとめ 】

5
1
1

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