操作系统: Debian 11 Core
第一件事,换源。
众所周知,Debian默认的源在国内是真的慢,为了防止太慢耽误时间,所以我们要把它换成腾讯源,代码如下:
vim /etc/apt/sources.list
然后把内容替换成:
deb https://mirrors.tencent.com/debian/ bullseye main non-free contrib
# deb-src https://mirrors.tencent.com/debian/ bullseye main non-free contrib
deb https://mirrors.tencent.com/debian-security/ bullseye-security main
# deb-src https://mirrors.tencent.com/debian-security/ bullseye-security main
deb https://mirrors.tencent.com/debian/ bullseye-updates main non-free contrib
# deb-src https://mirrors.tencent.com/debian/ bullseye-updates main non-free contrib
deb https://mirrors.tencent.com/debian/ bullseye-backports main non-free contrib
# deb-src https://mirrors.tencent.com/debian/ bullseye-backports main non-free contrib
最后执行:
apt update -y
第二件事,修改 ~/.vimrc
众所周知,vim这玩意编辑中文会乱码,为了防止它乱码导致我没兴趣改,所以我们要编辑 ~/.vimrc让他支持中文:
set termencoding=utf-8
set encoding=utf8
set fileencodings=utf8,ucs-bom,gbk,cp936,gb2312,gb18030
收藏
发表评论