Larson, DavidX S schrieb: >>> On 2009-02-09, Matt Wozniski wrote: >>> >>>> There's no easy way to get all options, afaik. >>> :set all >> I meant from vimscript. Sure, between :set all and :set termcap >> you can get a list of all the options, and with :redir you can get >> that into a string, but parsing that string would be incredibly >> difficult without knowing all of the option names ahead of time - and, >> if you knew that, you could just query them each directly. > >> ~Matt > > How about something like this? (tested) :)
It cannot work reliable with redir. Think of options with possible trailing whitespace, like 'listchars', 'showbreak', 'breakat', etc. There is no backslash for escaping in the output. -- Andy --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---