eclipse viplugin命令大全(转载自Lblogs)

1 篇文章 0 订阅
0 篇文章 0 订阅

文章转载:http://www.cnblogs.com/LBlogs/archive/2013/01/09/eclipse_viplugin.html

eclipse viplugin命令大全

1. Switch Mode Commands

Command Description
ESC   Switch to command mode
i   Switch to insert mode on current character
a   Switch to insert mode after current character
I   Switch to insert mode on first visible character of the current line
A   Switch to insert mode on last visible character of the current line
o   add a new line after the current line and switch to insert mode
O   add a new line before the current line and switch to insert mode
v   Switch to visual character mode
V   Switch to visual line mode


! §CTRL+V (if mapped) Switch to visual block mode


2. Movement Commands


Command Description
hjkl movement keys
w move one word forward
b Move one word backward
W Move one WORD forward
B Move one WORD backward
e Move to end of word
E Move to end of WORD
gg Go to the first line
G Go to the last line
<n>G Go to the <n>-th line
^ Move to first visible character in line
$ move to the end of the line
0
| (pipe) move to the beginning of the line
{ Go to next blank line
} Go to previous blank line
% Match brace
H Go to first visible line
L Go to last visible line
M Go to center visible line
+ Go to the first visible character in the next line
- Go to the first visible character in the previous line
_ Go to first visible character in line
<SPACE> Move one character right (jump to next line if it was the last character
in the line)
<ENTER> Go to the first visible character in the next line


3.Delete Commands


Command Description
x delete current character
s delete current character and switch to Insert Mode
dd Delete current line
dk or d(Up Arrow) delete current line and the line above
dj or d(Down Arrow) delete current line and the line below
dw Delete word
d$ Delete to the end of the line
d0 Delete to the beginning of the line
cc or S Delete current line and switch to insert mode
cw Delete to the end of the word and switch to insert mode
c$ Delete to the end of the line and switch to insert mode
c0 Delete to the beginning of the line and switch to insert mode


4.Other Commands


Command Description
yy yank (copy) current line
y yank (copy) selected text to default buffer (clipboard)
"ay yank (copy) selected text to buffer a
p paste text in default buffer
"ap paste text in buffer a
/abc search for abc
* search for word under cursor
# search for word under cursor backwards
n search again with the last search string
N search backwards with the last search string
. repeat last command
u Undo last change
U
CTRL-R (if
mapped)


Redo last undo
<< Shift line left
>> Shift line right


5.Ex Commands


Ex commands support ranges e.g.
:.,+1d
:.,$s/foo/bar/g
:1,'ac


Ex-Command Description
:d Delete current selection
:c Delete current selection and switch to insert mode
:fs or :fullscreen Maximize editor window
:version Show viPlugin version information
:registers Show content of registers
:vim Execute external vim application with the currently opened file at the
same line/column. The path to the vim exectuable has to be
configured in the preferences.
:< Shift current selection left
:> Shift current selection right
:ta Start Eclipse ?Open Type“ Dialog
:y Yank current selection
:e# or :b# Switch to last editor
:t or :co (with
range) Copy range to specified destination
:map Map command (easier via preferences)
:imap Map insert mode command (easier via preferences)
:umap Unmap command or insert mode command (easier via preferences)
:m (with range) Move range to specified destination
:w Save file
:wq or :x Save file and close editor
:wa Save all
:e! Revert changes
:q! Close editor without saving (and do not ask if there are unsaved changes)
:<nr> go to line number <nr>
:u Undo last change
:red Redo
:new Open new untitled text file
:n Goto next editor
:N or :prev Goto previous editor
:cn Goto next Problem marker in current editor
:$ Goto last line
:<Up-Arrow> Go through Ex command history
:<Down-Arrow> Go through Ex command history
:[%]s/foo/bar/[gic] vi style search and replace
:%s or :s Execute last search/replace command
:g/pattern/cmd Execute cmd on all lines matching pattern. Support commands are d,
y, t and m
:v/pattern/cmd Execute cmd on all lines NOT matching pattern. Support commands
are d, y, t and m

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值