Vim installation, configuration and copy and paste operations

Source: Internet
Author: User

1. Installation:
sudo apt-get install vim

2. Configuration:
CD ~ #进入用户主目录

Touch. VIMRC #. suffix File not visible

Vi. VIMRC #打开文件

Input:

1 Setcindent2 3 SetShiftwidth=44 Settabstop=45 Setsofttabstop=46 7 Set Number8 SetHlsearch9 Syntax onTen  One SetShowmode A SetFoldmethod=Syntax - SetRuler -  the  -  - SetBackground=Dark - "ColorScheme Ron +ColorScheme Molokai

Explanations and higher-end configurations See: http://www.cnblogs.com/276815076/archive/2010/09/09/1822598.html

3, vim copy paste delete operation:

Vim to open the file.

V Select where the cursor is passing

V is selected in the behavior unit

Ctrl + V block operation

Y Copy selected Place

D Delete the selected place

X Delete the following characters

X Remove the preceding characters

d$ Delete all characters at the end of the row at the cursor location

GG moves to the beginning of the line

$ move to end of line

YY the line where the cursor is copied

U Undo Previous Action

CTRL + R Redo Previous action

P: Paste the contents of the Clipboard after the cursor

P (UPPERCASE): Pastes the contents of the Clipboard before the cursor

See: http://blog.csdn.net/tsuliuchao/article/details/8131537

Another here vim introduction very full: http://www.cnblogs.com/tzhangofseu/archive/2011/12/17/2290955.html

Vim installation, configuration and copy and paste operations

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.