I would like to be able to access all the variables at a given time in Vim
without necessarily knowing what they are.  Basically everything you would
see if you typed :let and :set.  So in increasing order of difficulty


   1. Is there a way to redirect the output from :let and :set? It would be
   pretty simple to parse that up, but I can't figure it out.
   2. Is there a way to call functions in the Vim code from VimL?  Browsing
   through the source I see list_hashtable_vars seems to have the info I need.
   3. Is there a way to access the actual C data structures from VimL? If I
   could read the various hashtables myself I could do what I needed.

I suspect there's no way to do any of this, but I thought I'd ask before I
took a more...cumbersome route. Oh, also what is this declaration structure:
 2038     static void
 2039 list_func_vars(first)
 2040     int *first;
 2041 {
 2042     if (current_funccal != NULL)
 2043     list_hashtable_vars(&current_funccal->l_vars.dv_hashtab,
 2044                         (char_u *)"l:", FALSE, first);
 2045 }

I've never seen that in C before. Declaring variables after the arguments
but before the body?

--Whaledawg

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui