Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Created December 28, 2009 16:22
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 lukaszkorecki/264761 to your computer and use it in GitHub Desktop.
Save lukaszkorecki/264761 to your computer and use it in GitHub Desktop.
" list all methods/functions in object literal in Javascript
" i.e. var obj = {
" testF : function() { alert('yo!'); },
" el : 0,
" tesf2 :function (elo) { console.dir(elo); }
" };
" one thing though:
" function definition has to have "{" on the same line as "function" keyword
lvimgrep /\w*:.*function.*{/ %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment