On Tue, Nov 13, 2012 at 9:50 AM, Christian Brabandt <[email protected]> wrote: > On Tue, November 13, 2012 10:33, shawn wilson wrote: >> is there a way to specify how a fold gets labeled? the default (of the >> first line with visible text is generally correct) but sometimes, my >> fold will start at a line with only /* or // or #. and a fold label >> with one of these is next to useless. >> > See > :h 'foldtext' > :h fold-foldtext >
per foldtext - Leading white space, "//" or "/*" and the text from the 'foldmarker' and 'commentstring' options is removed. i have: let perl_fold=1 " Perl and try: autocmd FileType perl set commentstring='# %s' but, this doesn't seem to do anything. also, it seems i was wrong about // - that does seem to work correctly in js -- 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
