How to install vim editor commands and Chinese help documents in Ubuntu

Source: Internet
Author: User
Vim played in Windows. after moving to Ubuntu, Vi is very awkward (especially the items on the clipboard cannot be paste in Vi ...) and so on... I plan to convert Vi to Vim, which may be much better. don't talk nonsense, start action. in fact, it is very simple: 1. open the command line and tap the following command (download and install Vim with clipboard function): sudoap

Vim played in Windows. after moving to Ubuntu, Vi is very awkward (especially the items on the clipboard cannot be paste in Vi ...) and so on... I plan to convert Vi to Vim, which may be much better. don't talk nonsense, start action. it is actually very simple:

1: Open the command line and tap the following command(Download and install Vim with clipboard function ):

Sudo apt-get install vim-gui-common

2: done ......... now, if you use the Vi or Vim command to edit a file, the familiar interface is back. next we will start to install the Chinese help documentation. first, download the Vim help documentation in Chinese, and click the following command in the command line to download the help documentation in Chinese:

Wget http://sourceforge.net/projects/vimcdoc/files/vimcdoc/1.8.0/vimcdoc-1.8.0.tar.gz

3. decompress the downloaded tar.gz file:

Tar zxvf vimcdoc-1.8.0.tar.gz

4: Go to vimcdoc- Directory to find the INSTALL file , Cat to get a lot of information you want to know, and then install the Chinese documentation, it will find the installation directory for installation, here to emphasize, if you install it as a common user, it will be installed in the directory. vim/doc .... in the folder. if it is installed as a root user, it will be installed in usr/share... in the folder, Tom chose the root user for installation. after all, linux is a multi-user operating system:

Cat INSTALL
./Vimcdoc. sh-I

In this way, our Chinese help document is also installed... if you want to learn Vim well, you don't need to find a tutorial on the internet. First, you can call Vi or Vim in the command line to start the editor. the bottom line of the editor is the command line. after you press the following command and press enter, the editor will display the line number. then, the help document will be displayed when you press the Command:

: Set number
: Help

Move the cursor here. we can use j (h, j, k, and l on the upper left, lower right, or lower right) on the keyboard, there will be a tutorial for this editor starting from the 34 lines of the help document, which is very detailed here. the format of each line is a jump, followed by the relevant tutorials on the page after the jump, we can see that "| quickref |" Go to details, and press You can go back to the previous page. I think Vim/Vi is not difficult after the tutorial... hey, okay... it's not too early... today we are here...

As a new comer... If I help you, I will be very happy...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.