You asked, "What is your foldmethod"
    set foldmethod=indent
    set foldlevel=0

>Please clarify what you ask:
>(1) when vim is invoked with +num option, do not fold anything in the file, or
>(2) when vim is invoked with +num option, fold all folds except the
> fold containing the current line ?

Extra credit for #2, but will settle for #1.

Tim did show that

% vim +55 -c 'norm zO' file

Seems to do #2. but I'd be great to have this functionality with the simpler command line

% vim +55 file

--
   Soli Deo Gloria
   Adam Krolnik
   Director of Design Verification
   VeriSilicon Inc.
   Plano TX. 75074
   Co-author "Assertion-Based Design"

Reply via email to