Merge pull request #292 from misfo/vim_movements_2

vim I,A,C,G,b,e,x,X,D commands
This commit is contained in:
Fabian Jakobs 2011-06-10 01:20:20 -07:00
commit 5c54545a99

View file

@ -47,10 +47,25 @@ var vimStates = {
then: "insertMode"
},
{
key: "o",
key: "a",
exec: "gotoright",
then: "insertMode"
},
{
key: "shift-i",
exec: "gotolinestart",
then: "insertMode"
},
{
key: "shift-a",
exec: "gotolineend",
then: "insertMode"
},
{
key: "shift-c",
exec: "removetolineend",
then: "insertMode"
},
{
key: "shift-r",
exec: "overwrite",
@ -104,6 +119,30 @@ var vimStates = {
}
]
},
{
key: "shift-g",
exec: "gotoend"
},
{
key: "b",
exec: "gotowordleft"
},
{
key: "e",
exec: "gotowordright"
},
{
key: "x",
exec: "del"
},
{
key: "shift-x",
exec: "backspace"
},
{
key: "shift-d",
exec: "removetolineend"
},
{
comment: "Catch some keyboard input to stop it here",
match: matchCharacterOnly