On Thursday, November 1, 2012 1:54:56 PM UTC-5, tjg wrote: > Thank you very much for your answer. > > > > One question, nevertheless : I have already set my fold method to an > > expression found in the Vim documentation : > > > > /This will make a fold out of paragraphs separated by blank lines: > > :set foldexpr=getline(v:lnum)=~'^\\s*$'&&getline(v:lnum+1)=~'\\S'?'<1':1/ > > > > Is it possible to have 1 fold method (expression) and 2 expressions for 2 > > different situations, and in that case, a usual expression (folding on > > paragraphs) plus an expression specific to a tab split ? >
Yes. The 'foldexpr' option is local to the Window. So you can do whatever you want in a split window/tab without affecting the first window/tab. Just be sure to use :setlocal and not :set. -- 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
