From 0482313f9b82efe65a9c7b8fb5ebca13929af6a3 Mon Sep 17 00:00:00 2001 From: CoderOJ <42932660+CoderOJ@users.noreply.github.com> Date: Fri, 13 Nov 2020 14:32:15 +0800 Subject: [PATCH] =?utf8?q?fix(vim.md)=20=E4=BF=AE=E5=A4=8D=E5=85=B3?= =?utf8?q?=E4=BA=8E=E4=BA=A4=E6=8D=A2=20Caps=20Lock=20=E5=92=8C=20Escape?= =?utf8?q?=20=E9=83=A8=E5=88=86=E7=9A=84=E5=B0=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- docs/tools/editor/vim.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tools/editor/vim.md b/docs/tools/editor/vim.md index 3057ac49..e2eb7ecc 100644 --- a/docs/tools/editor/vim.md +++ b/docs/tools/editor/vim.md @@ -182,7 +182,7 @@ sudo apt install gnome-tweak-tool 在绝大多数 linux 发行版上,可以通过 `setxkbmap -option caps:swapescape` 来临时修改。 -如果想要永久修改,将其加入到 `~/.profile` 中(对当前用户)或 `/etc/profile` 中(对所有用户) +如果想要永久修改,将其加入到 `~/.profile` 中(对当前用户)或 `/etc/profile` 中(对所有用户)。 #### 方法3:修改X11配置文件(不推荐) @@ -193,7 +193,7 @@ sudo apt install gnome-tweak-tool ```bash cd /usr/share/X11/xkb/symbols/ sudo cp pc pc.bak # 备份配置文件,以防改错 -sudo pc +sudo vim pc ``` 找到 `key ` 与 `key ` 这两行,调换两行的中括号 `[]` 中的内容。注销再重新进入系统后,它们就换过来了。 -- 2.11.0