On 3 Aug 2009, at 19:19, riickcr wrote: > > I'm sure this is simple, but my searching the help files > Currently xml files are opening with all folds closed. I then hit 'zi' > which expands all folds. I'm searching around trying to figure out how > I can have my xml files by default open with everything expanded? > > In my .vimrc I have this set: > > let g:xml_syntax_folding=1 > > but I'm not sure how that's related as changing the number doesn't > seem to have much affect, other than that line seems to need to be > there to allow folding for my xml files? > The option 'foldlevel' sets the initial number of folds to be open when the file is opened. I set this in my .vimrc as a global for all file types, but you an set it on a file-by-file basis in the file type initialisation routines.
see :he 'foldlevel' (note the apostrophes denote help for an option) Regards, Andy -- Andrew Long andrew dot long at mac dot com --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
