Skip to content

Instantly share code, notes, and snippets.

@Sixeight
Created September 21, 2008 04:44
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/11840 to your computer and use it in GitHub Desktop.
Save Sixeight/11840 to your computer and use it in GitHub Desktop.
" for .vimperatorrc
" 個人的に追加するコマンド達
javascript <<EOM
(function () {
[
['gmail', 'http://mail.google.com/', 'open Gmail'],
['gnews', 'http://news.google.co.jp/', 'open Google News'],
['gusnews', 'http://news.google.co.jp/news?ned=us', 'open Google News (U.S)'],
['gmap', 'http://maps.google.co.jp/', 'open Google Maps'],
['greader', 'http://www.google.com/reader/', 'open Google Reader'],
['gscholar', 'http://scholar.google.co.jp/', 'open Google Scholar'],
['ldr', 'http://reader.livedoor.com/reader/', 'open LDR'],
['ssb', 'http://stack.nayutaya.jp/', 'open StackStockBooks'],
['rurima', 'http://doc.okkez.net/187/', 'open Ruby reference manual'],
].forEach(function([title, url, message]) {
var command = function () { liberator.open(url); };
liberator.commands.addUserCommand(
[title],
message,
command,
{ shortHelp: message, }
);
});
})();
EOM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment