Skip to content

Instantly share code, notes, and snippets.

@tyru
Created April 28, 2010 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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) {
liberator.execute('cabbrev -javascript ' + arg[0] + ' commandline.command === "' + arg[0] + '" ? "' + arg[1] + '" : "' + arg[0] + '"')
},
{
argCount: 2,
completer: liberator.modules.completion.command,
},
true
);
EOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment