On Mon, Feb 06, 2012 at 11:33:42AM -0800, Ben Fritz wrote: > I am trying to make a quickfix folding solution for my Vim config, > which does something different based on what command created the > quickfix list.
> Currently, I'm folding all results from the same file together for the > various 'grep' commands, and I'm folding away all but errors and > warnings for compiler commands. > But I'm not happy with my detection of the command which created the > quickfix window. > I've tried using w:quickfix_title, but I have discovered this variable > does not get set until sometime after the filetype autocmd fires. why not create wrapper functions for grep and compile -- the grep one can invoke your grep, then source a script to set your grep folding rules -- the compile one would invoke the compiler and source a compile folding rule module -- with separate modules they'd never have to check to see what type of folding to do, they'd already know sc -- 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
