[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [OT] vim usage tips
- From: Andre Costa <acosta@...>
- Date: Tue, 16 Mar 2004 15:10:28 -0300
On Tue, 16 Mar 2004 09:38:28 -0800
"Richard Ranft" <firstname.lastname@example.org> wrote:
> This is a handy feature - Visual Studio borrowed it from vim
> I think that this is very useful in that you can finish
> tweaking/testing a given function and then "fold" it out of sight,
> leaving the declaration visible for reference and uncluttering those
> multi-thousand line files for easier browsing.
Exactly, that's precisely how I am using it right now.
> Good tip, dude!
Thks, glad it was useful =) One additional tip: if you put this on your
set foldmethod=syntax nofoldenable
vim will start with foldmethod set to syntax mode, but will not activate
folding by default. Then, it's up to you to (de)activate it with z[nNi].
Remember though that not all syntax files support folding.
Andre Oliveira da Costa