Raspberry Pi replaces domestic available sources and installs a new version of vim

1. Enter the instruction

sudo nano /etc/apt/sources.list

2. Modify the source, comment with # or delete the original content directly, and add

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
#deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

Press ctrl + o to save,
prompt whether to write, press Enter to confirm,
press ctrl + x to exit

3. Enter the update instruction

sudo apt-get update

Wait a moment

4. Enter the instructions to install the new version of vim

sudo apt-get install vim

Wait a moment

Guess you like

Origin blog.csdn.net/lcx1837/article/details/107861170