On Mon, 18 Sep 2006 at 8:01pm, Meino Christian Cramer wrote: > > > > Tim's :foldd and :foldo suggestions are actually very good in deed > > (didn't know about them), especially with the help of tools to create > > folds and operate commands on them. I would like to suggest you take a > > look at my foldutil.vim (http://www.vim.org/script.php?script_id=158). > > The benefit for you is that you can execute a single command to create > > folds that include/exclude all the lines that are matching or > > not-matching your specified pattern. You can then use :foldo or :foldd > > commands to issue commands on them. > > > > Also configure the 'foldopen' setting such that the folds will not be > > automatically opened by Vim when you move cursor around. I think, > > setting an empty value will help keep them closed as much as possible. > > > > You might also be interested in my multiselect.vim plugin > > (http://www.vim.org/script.php?script_id=953). It provides commands that > > are similar in nature to :foldo and :foldd to restrict normal mode and > > ex mode commands to selected regions. You can also use mouse to create > > selections. > > Hi, > > I have downloaded your script and genutils but got some problems... > > It displays: > > Folds created: 0 > line 75: > E117: Unknown function: RestoreHardPosition > > There is another message, which appears for a very short time -- too > short for me to read it. > > What did I wrong here ? > > Keep hacking! > mcc
Looks like I haven't uploaded the one which uses the autoload version of genutils yet. I will update it soon, but meanwhile please try the below version: http://haridara.googlepages.com/foldutil.vim -- Thanks, Hari __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com