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.