Skip to content

Instantly share code, notes, and snippets.

@anekos
Created March 4, 2010 15:57
Show Gist options
  • Save anekos/321826 to your computer and use it in GitHub Desktop.
Save anekos/321826 to your computer and use it in GitHub Desktop.
mappings.addUserMap(
[modes.COMMAND_LINE],
['<C-i>'],
'Edit commandline by external editor',
function () {
io.withTempFiles(
function (file) {
file.write(commandline.command);
editor.editFileExternally(file.path);
commandline.open(":", file.read(), modes.EX);
return true;
}
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment