> I have this function to find the method names from libraries:
>
> (for [method (seq (.getMethods java.awt.Frame))
> :let [method-name (.getName method)]]
> method-name)
>
> I would like to use it when I have the cursor over the name of any library
> in vim. So I need to replace "java.awt,Frame" with the name of the library
> under the cursor.
>
> Any suggestion?
That doesn't look like Vim script. It looks vaguely lisp-esque. If you
can translate it into Vim script, or call it using Vim's :mzscheme
interface somehow, then perhaps the <cword> or <cWORD> items would be
of use. I think you need to use them with the expand() function to use
them in an expression, e.g. a function call. See the :help entry for
each.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment