Vim notepad ++ usage

Source: Internet
Author: User

The font is nice

 

G is Vim jump to the last line. gg jump to the top line.

Copy a row: yy P

Copy multiple rows: 1, 4 copy 6

Save command: savees D: 1.txt
: %! Xxd ----> switch to hexadecimal display
: %! Xxd-r ----> display by text Switch

Chinese garbled characters:

Solution
Vim
Chinese encoding problem, in
~ /. Vimrc
Last added:







 

Let & termencoding = & Encoding



Set fileencodings = UTF-8, GBK, ucs-bom, cp936



 

Chinese garbled characters: set encoding UTF-8

 

Specify the storage directory for the new file: E ~ /Destop/1.txt

 

Open the file directory: nerdtree

Nerdtree ~ /Destop

 

Nerdtree usage:


Double-click or use nerdtree-O to activate the selected file.

 

: Nerdtreeclose close tab

 

Notepad ++:
CTRL + D copy a row equivalent to eclipse Ctrl + Shift + arrow

Notepad ++ plugin installation:

Unzip the downloaded plug-in to the Plugins directory.

 

 

If Vim is set to disable automatic backup:

 

Find this file: vimrc_example.vim
In the vim70 folder, open it and find the sentence: If has ("VMS ")

Keep the if part in this judgment, and comment out the else part. (The Vim annotator is ")
That is, after the modification, it should be like this:



If has ("VMS ")

Set nobackup "do not keep a backup file, use versions instead

"
Else

"
Set backup "Keep a backup file

 

 

Open:
: E ftp: // 192.168.10.76/abc.txt
Save (create if it does not exist ):
: W ftp: // 192.168.10.76/abc.txt
Read:
: R ftp: // 192.168.10.76/abc.txt
The user name and password must be entered when the preceding operations are enabled for the first time,
It won't be used in the future. Vim will remember it.

In short, most operations on files can be directly used to operate FTP files,
Vim parses the URL tag in the file name to distinguish between them.

In fact, there is another convenient way to open a file,
That is, when the edited file contains a URL similar to FTP: // 192.168.10.76/abc.txt,
You can directly move the cursor above and use the GF command to open it.

 

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.