1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-23 20:33:30 +01:00

- new 'insertmode' option

- fixed c-u behavior
This commit is contained in:
Martin Stubenschrott
2007-09-12 13:41:15 +00:00
parent 9a7ecb0f5c
commit e4f8b78f07
5 changed files with 30 additions and 21 deletions

View File

@@ -1832,7 +1832,13 @@ function Mappings() //{{{
{ }
));
addDefaultMap(new Map([vimperator.modes.INSERT, vimperator.modes.COMMAND_LINE], ["<C-u>"],
function() { vimperator.editor.executeCommand("cmd_deleteToBeginningOfLine", 1); },
function()
{
// broken in FF3, deletes the wohle line:
// vimperator.editor.executeCommand("cmd_deleteToBeginningOfLine", 1);
vimperator.editor.executeCommand("cmd_selectBeginLine", 1);
vimperator.editor.executeCommand("cmd_delete", 1);
},
{ }
));
addDefaultMap(new Map([vimperator.modes.INSERT, vimperator.modes.COMMAND_LINE], ["<C-k>"],