Install vim and Chinese help documents in Ubuntu

Source: Internet
Author: User
Tags gz file

 

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 the vimcdoc-<version> directory and 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 |" this jump can jump to the details by pressing <Ctrl +]>, press <Ctrl + O> to return 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...

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.