Install vim and configuration files under Ubuntu in a virtual machine

  1. Just record your own installation process. If you want to install vim editor under Linux, you can refer to the following steps.
    First of all vi command, see if there is vim in your environment, mine must not be there.
    Insert picture description here
  2. Then, enter the command (sudo apt-get install vim-gtk), you can skip the second step directly.
    But because I encountered a problem with input, there was an error that the vim-gtk package could not be located in Ubuntu. At this time
    Insert picture description here
    , the package will be upgraded next. Wait patiently...wait...
    Insert picture description here
  3. Next, follow the two figures below to execute.
    Insert picture description hereInsert picture description here
    Supplement: My friend said that there was an error following this installation:
    Insert picture description here
    Let’s talk about it, during the installation process, it is best not to shut down or interrupt the VM. The above error is because the previous process occupies resources, enter the following command:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

Kill the process and reinstall it

Guess you like

Origin blog.csdn.net/A_Tu_daddy/article/details/103347519