viPlugin
========

Description:

viPlugin is an Eclipse based plugin for adding vi(m) functionality to an open editor.
Since 0.1.1 it contains a viEditor that can be associated with a file-extension in the
workbench preferences (so that the plugin doesn't need to be loaded for that extension).
The viEditor has no additional JDT, CDT functionality!

How to start:

viPlugin:
Right click the toolbar and set "Other->viPlugin" visible. Now just click on
the vi Action in the Toolbar (or the menu) and the viPlugin is loaded. As long
as the plugin is loaded all editors that are an instance of ITextEditor are
using the viLayer. By clicking the icon again the viPlugin is unloaded.

viEditor:
Set the preferred editor in the preferences of the Workbench to ViEditor and
open a file of that type.

Following is a short description of implemented commands. For more information
have a look at the vim documentation at http://www.vim.org.	

Commands that are different from vim:

Z		used instead of CTRL-R (redo)

Commands:

ESC		in insertMode: switch to command mode
		in CommandMode: delete CommandBuffer (not yet done automatically)
i,a,I,A	switch to insert mode
s		delete current character and switch to Insert Mode
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
$		move to the end of the line
0		move the the beginning of the line
yy		yank (copy) current line
y		yank (copy) selected text
p		paste text in buffer
dd		Delete current line
dk, d(Up Arrow)   delete current line and the line above
dj, 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,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
gg		Go to the first line
G		Go to the last line
nG		Go to the n-th line
/xxx	search for xxx
*     	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
x		delete current character
:w		Save file
:wq		Save file and close editor
:q		Close editor without saving
:nr   	go to line number "nr"
hjkl  	movement keys
w		move one word forward
b		move one word backward
.		repeat last command
