Merge pull request #283 from misfo/first_stab_at_vim_keybindings
First stab at adding some vim keybindings
This commit is contained in:
commit
0762f22ee4
1 changed files with 17 additions and 0 deletions
|
|
@ -46,6 +46,16 @@ var vimStates = {
|
||||||
key: "i",
|
key: "i",
|
||||||
then: "insertMode"
|
then: "insertMode"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: "o",
|
||||||
|
exec: "gotoright",
|
||||||
|
then: "insertMode"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "shift-r",
|
||||||
|
exec: "overwrite",
|
||||||
|
then: "replaceMode"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
regex: [ "([0-9]*)", "(k|up)" ],
|
regex: [ "([0-9]*)", "(k|up)" ],
|
||||||
exec: "golineup",
|
exec: "golineup",
|
||||||
|
|
@ -104,6 +114,13 @@ var vimStates = {
|
||||||
key: "esc",
|
key: "esc",
|
||||||
then: "start"
|
then: "start"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
replaceMode: [
|
||||||
|
{
|
||||||
|
key: "esc",
|
||||||
|
exec: "overwrite",
|
||||||
|
then: "start"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue