Skip to content

Instantly share code, notes, and snippets.

@Sixeight
Created September 26, 2008 17:48
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 Sixeight/13159 to your computer and use it in GitHub Desktop.
Save Sixeight/13159 to your computer and use it in GitHub Desktop.
" vimperator plugin *MODOKI*
"
" USAGA:
" :gosh S式
(function() {
liberator.commands.addUserCommand(['gosh'], 'Evalute gauche code',
function(arg, special) {
// Set your gosh path!
var gosh_path = '/opt/local/bin/gosh';
var command = '';
if (special) {
command = "!" + gosh_path + " -e '(display " + arg + ")'";
}
else {
command = "!" + gosh_path + " -e '" + arg + "'";
}
liberator.execute(command);
}, {}
);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment