Skip to content

Instantly share code, notes, and snippets.

@tyru
Created April 28, 2010 06:30
Show Gist options
  • Save tyru/381801 to your computer and use it in GitHub Desktop.
Save tyru/381801 to your computer and use it in GitHub Desktop.
altercmd.js - altercmd.vim in Vimperator plugin.
javascript <<EOS
liberator.modules.commands.addUserCommand(
['altercommand'],
'this is vimperator plugin version of vim plugin altercmd.vim',
function (arg)
abbreviations.add(
[modes.COMMAND_LINE],
arg[0],
function()
commandline.command == arg[0] ? arg.literalArg : arg[0]
)
,
{argCount: 2, literal: true, completer: completion.command},
true
);
EOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment