一、打开终端执行以下命令:

sudo pacman -S vim

二、执行vim发生错误:

$ vim a
vim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory

三、安装libperl.so库:

sudo pacman -S perl