Home  >  Q&A  >  body text

Vim problem under Ubuntu

Configure some Vim options under Ubuntu, and then vim xx_file to display sorry xxxx
Then Google,

run vi-version
if your result is 'small version without GUI'
you should install Vim by  `apt-get install vim`

Then follow the instructions, it’s still being installed after a long time...

Questions:

PHPzPHPz2712 days ago650

reply all(3)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-16 16:41:44

    Questions about the source

    In China, you can choose Alibaba Cloud or 163, both of which are pretty good.

    Some foreign packages are indeed slower.

    About installing vim

    If you want to install gvim, you cansudo apt-get install vim-gtk
    Then you can configure gvim by editing .vimrc 来配置vim(命令行中使用), .gvimrc. If there is no .gvimrc file, gvim will automatically use the .vimrc configuration file.
    You may need to create these two files yourself.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 16:41:44

    1. Vim has a command line version and a gui version. Each distribution has different pre-installations. Some distributions do not have vim at all
    2. apt-get install vim installs the command line version, there is no need to delete the previous one
    3. Slowness is a source problem. Search "ubuntu Chinese source" on Baidu to find a modification tutorial.

    reply
    0
  • 某草草

    某草草2017-05-16 16:41:44

    For the Ubuntu distribution, vim-common is installed by default. What you need to do is:

    $sudo apt-get remove vim-common
    $sudo apt-get install vim
    

    If it’s slow, you can change the source. The content of the change will be slightly different depending on the version, so it depends on your version.

    reply
    0
  • Cancelreply