Install vim on Ubuntu and help documentation in Chinese

Source: Internet
Author: User


Tom is playing Vim in Windows. after moving to Ubuntu, I feel that Vi is very awkward (especially the things 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 ):
Www.2cto.com 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 we download Vim Chinese help documentation, in the command line by the following command to download the Chinese help documentation: wget http://sourceforge.net/projects/vimcdoc/files/vimcdoc/1.8.0/vimcdoc-1.8.0.tar.gz 3: Download the downloaded tar.gz unzip: www.2cto.com tar zxvf vimcdoc-1.8.0.tar.gz 4: go to the vimcdoc-<version> directory and find the INSTALL file. You can get a lot of information you want to know by cat, and then INSTALL the Chinese document. It will find the installation directory for installation, it should be emphasized that 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... after all, linux is a multi-user operating system: cat INSTALL
. /Vimcdoc. sh-I www.2cto.com. Our Chinese help documentation 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. After you press the command, the help document is displayed: set number
: Help move the cursor here. We can use j (h, j, k, and l on the top of the keyboard to correspond to the upper left and lower right directions), or use the lower part of the keypad, 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...


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

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.