Vimplugin is the vim plug-in eclipse, which is easy to use.
: Http://www.viplugin.com/viplugin/
After installation, an error is prompted:
Create a file named viplugin. license in the prompted path (generally in the eclipse or Workspace path) with the content XQ @ A * 4
The Vim commands searched on the Internet are as follows:
Address: http://blog.csdn.net/AbnerChai/archive/2005/09/03/470824.aspx
Move cursor
Up: k nk: up to N rows 9999k or Gg can be moved to the first row G to the last row
Bottom: j nj: Move n rows down
Left: h nh: Move n columns to left
Right: l NL: Move n columns to the right
W: move cursor forward by word NW: move the cursor forward by N words to the first letter of the word
B: opposite to W
E: move the cursor forward by words. Ne: move the cursor forward by N words to the last letter of the word.
Ge: opposite to E
$: Move the cursor to the end of the row N $: move the cursor to the end of the row n
0 (Num): move the cursor to the beginning of the line
^: Move the cursor to the first non-empty character in the line
F <A>: move the cursor to character a of the current row, and NF <A> move the cursor to CHARACTER n a of the current row.
F: opposite
%: Move to the matching brackets (), {}, [], <>, and so on.
NG: Move to line n g: to the last line
CTRL + G to get the position of the current cursor in the file
Flip forward: Ctrl + F
Move down the half screen: Ctrl + G
Flip back: Ctrl + B
Disk Storage:
: Q! : Exit without saving the disk
: E! : Discard modifying the file content and reload the file for editing.
: WQ: the disk is logged out.
DW: to delete a word, move the cursor to the first letter of the word and press DW. If the cursor is at any position of the word, use Daw
Dnw: delete n words
DNE: Yes, but it is deleted to the end of the word.
DNL: delete n letters to the right
Dnh: delete n letters from the left
DNJ: delete n rows down
DNK: delete n rows up
D $: Delete the letter from the current cursor to the end of the row to be changed
DD: delete a row
Cnw [word]: Change n words to word
Cc: change the entire line
C $: change to the end of the row
J: Delete the line break, move the cursor to the new line, and press SHIFT + J to delete the line break at the end of the line. The next line is connected.
U: undo the previous operation
SHIF + U (u): cancels all operations on the row.
: Set showmode: sets the display mode.
O: Start another row under the current row.
O (SHIFT + O): Start another row above the current row
NK or NJ: move the cursor up or down n rows, n is a number
An! [ESC]: add n exclamation points (!) to the end of the row (!)
NX: executes N x (delete) operations.
ZZ: Save the current document and exit vim.
: Help: view the help document. In this example, press Ctrl +] to enter the hyper-connection, and press Ctrl + O to return.
: Help subject: view the help of a topic. ZZ exits.
: Set number/set nonumber: Show/do not show row number
: Set ruler/set northeasters: Display/do not display the ruler
/Pattern searches for one character mode in the square direction
? Search for a character pattern in the opposite direction
Then press n to continue searching.
Place the cursor over a word and press the X key to search for the word.
Search for the entire word:/\ <word \>
: Set hlsearch highlight the searched words
: Set nohlsearch disable the modification function
M [A-Z]: Mark in the text. The mark number can be 26 letters of A-Z. 'A can be used to move to.
R: Replace the current character
NR character: replaces the current n characters
Search replacement:
Way1:
/[Word]: Find a word
CW [newword]: replace it with the new word
N: Continue searching
.: Replace
Way2:
: S/string1/string2/G: replace string1 with string2 in a row, and G indicates that the execution needs to be confirmed using C.
: Num1, num2 S/string1/string2/G: replace string1 with string2 between num1 and num2.
: 1, $ S/string1/string2/G: replace string1 with string2 In the full text.
V: Enter visual mode
[ESC] exit
V: Shift + V visual mode for entering the row
CTRL + V: in block operation mode, use o and O to change the size of the selected edge.
Paste: P, which is the text deleted with X or D.
Copy:
Ynw: Copy n words
YY: copy a row
Ynl: Copy n characters
Y $: copy the current cursor to the end of the row
Nyy: Copy n rows
Paste with P
: Split a window
: Split file. C: separates windows from another file. C.
: Nsplit file. C: separates the window for another file. C and specifies the number of rows.
CTRL + W switch in the window
: Close the current window
Insert the same content in all rows, such as include. The operation is as follows:
Move the cursor to the start position, press Ctrl + V to enter the visual mode, and select the module.
Press I (SHIFT + I), insert the text to be inserted, and press [ESC.
: Read File. C: insert the file. C content under the current cursor
: 0 read file. c Insert the content of file. C to the beginning of the current file (row 0th)
: Nread file. c Insert the content of file. C to the end of row N of the current file.
: Read! CMD: insert the output of the external command cmd to the bottom of the current cursor.
: N1, N2 write temp. C: Write the N1 in this file to the N2 row into the temp. c file.
CTRL + L refresh the screen
Shift + <move one row left
Shift +> move one row to the right
U: undo
CTRL + R: Re-do
J: merge a row
CTRL + P Automatic completion
CTRL + G to view the full path of the current file
Q [A-Z] starts the record, but the previous operation is macro, the name can be [A-Z], and then ends the recording macro with Q.
Use reg to display all macros currently defined, and use @ [A-Z] to execute macro [A-Z] at the current cursor.
Copyrights by abnerchai, 2005.
Form: http://blog.csdn.net/AbnerChai/archive/2005/09/03/470824.aspx
Move cursor
Up: k nk: up to N rows 9999k or Gg can be moved to the first row G to the last row
Bottom: j nj: Move n rows down
Left: h nh: Move n columns to left
Right: l NL: Move n columns to the right
W: move cursor forward by word NW: move the cursor forward by N words to the first letter of the word
B: opposite to W
E: move the cursor forward by words. Ne: move the cursor forward by N words to the last letter of the word.
Ge: opposite to E
$: Move the cursor to the end of the row N $: move the cursor to the end of the row n
0 (Num): move the cursor to the beginning of the line
^: Move the cursor to the first non-empty character in the line
F <A>: move the cursor to character a of the current row, and NF <A> move the cursor to CHARACTER n a of the current row.
F: opposite
%: Move to the matching brackets (), {}, [], <>, and so on.
NG: Move to line n g: to the last line
CTRL + G to get the position of the current cursor in the file
Flip forward: Ctrl + F
Move down the half screen: Ctrl + G
Flip back: Ctrl + B
Disk Storage:
: Q! : Exit without saving the disk
: E! : Discard modifying the file content and reload the file for editing.
: WQ: the disk is logged out.
DW: to delete a word, move the cursor to the first letter of the word and press DW. If the cursor is at any position of the word, use Daw
Dnw: delete n words
DNE: Yes, but it is deleted to the end of the word.
DNL: delete n letters to the right
Dnh: delete n letters from the left
DNJ: delete n rows down
DNK: delete n rows up
D $: Delete the letter from the current cursor to the end of the row to be changed
DD: delete a row
Cnw [word]: Change n words to word
Cc: change the entire line
C $: change to the end of the row
J: Delete the line break, move the cursor to the new line, and press SHIFT + J to delete the line break at the end of the line. The next line is connected.
U: undo the previous operation
SHIF + U (u): cancels all operations on the row.
: Set showmode: sets the display mode.
O: Start another row under the current row.
O (SHIFT + O): Start another row above the current row
NK or NJ: move the cursor up or down n rows, n is a number
An! [ESC]: add n exclamation points (!) to the end of the row (!)
NX: executes N x (delete) operations.
ZZ: Save the current document and exit vim.
: Help: view the help document. In this example, press Ctrl +] to enter the hyper-connection, and press Ctrl + O to return.
: Help subject: view the help of a topic. ZZ exits.
: Set number/set nonumber: Show/do not show row number
: Set ruler/set northeasters: Display/do not display the ruler
/Pattern searches for one character mode in the square direction
? Search for a character pattern in the opposite direction
Then press n to continue searching.
Place the cursor over a word and press the X key to search for the word.
Search for the entire word:/\ <word \>
: Set hlsearch highlight the searched words
: Set nohlsearch disable the modification function
M [A-Z]: Mark in the text. The mark number can be 26 letters of A-Z. 'A can be used to move to.
R: Replace the current character
NR character: replaces the current n characters
Search replacement:
Way1:
/[Word]: Find a word
CW [newword]: replace it with the new word
N: Continue searching
.: Replace
Way2:
: S/string1/string2/G: replace string1 with string2 in a row, and G indicates that the execution needs to be confirmed using C.
: Num1, num2 S/string1/string2/G: replace string1 with string2 between num1 and num2.
: 1, $ S/string1/string2/G: replace string1 with string2 In the full text.
V: Enter visual mode
[ESC] exit
V: Shift + V visual mode for entering the row
CTRL + V: in block operation mode, use o and O to change the size of the selected edge.
Paste: P, which is the text deleted with X or D.
Copy:
Ynw: Copy n words
YY: copy a row
Ynl: Copy n characters
Y $: copy the current cursor to the end of the row
Nyy: Copy n rows
Paste with P
: Split a window
: Split file. C: separates windows from another file. C.
: Nsplit file. C: separates the window for another file. C and specifies the number of rows.
CTRL + W switch in the window
: Close the current window
Insert the same content in all rows, such as include. The operation is as follows:
Move the cursor to the start position, press Ctrl + V to enter the visual mode, and select the module.
Press I (SHIFT + I), insert the text to be inserted, and press [ESC.
: Read File. C: insert the file. C content under the current cursor
: 0 read file. c Insert the content of file. C to the beginning of the current file (row 0th)
: Nread file. c Insert the content of file. C to the end of row N of the current file.
: Read! CMD: insert the output of the external command cmd to the bottom of the current cursor.
: N1, N2 write temp. C: Write the N1 in this file to the N2 row into the temp. c file.
CTRL + L refresh the screen
Shift + <move one row left
Shift +> move one row to the right
U: undo
CTRL + R: Re-do
J: merge a row
CTRL + P Automatic completion
CTRL + G to view the full path of the current file
Q [A-Z] starts the record, but the previous operation is macro, the name can be [A-Z], and then ends the recording macro with Q.
Use reg to display all macros currently defined, and use @ [A-Z] to execute macro [A-Z] at the current cursor.