Re: Folding in vim

2005-07-06 Thread Bill Mill
On 7/6/05, Terry Hancock <[EMAIL PROTECTED]> wrote: > On Tuesday 05 July 2005 03:53 pm, Renato Ramonda wrote: > > Why not use just spaces? Vim simplifies this immensely: > > > > set tabstop=4 > > set shiftwidth=4 > > set expandtab > > set smarttab > > set autoindent > > > > AFAICT this gives me all

Re: Folding in vim

2005-07-06 Thread Renato Ramonda
Terry Hancock ha scritto: > > Yep, this is what I just set up in my .vimrc. Works beautifully. And (you probably already know, but it could be of use to others) you can bind the activation of some or all of those commands to au (autocommand) depending on the file extension. That way you can

Re: Folding in vim

2005-07-05 Thread Terry Hancock
On Tuesday 05 July 2005 03:53 pm, Renato Ramonda wrote: > Why not use just spaces? Vim simplifies this immensely: > > set tabstop=4 > set shiftwidth=4 > set expandtab > set smarttab > set autoindent > > AFAICT this gives me all spaces, 4 spaces indent, tab inserts spaces and > backspace over a b

Re: Folding in vim

2005-07-05 Thread Renato Ramonda
Sybren Stuvel ha scritto: >>If using Vim it would be something like "set softtabstop=4". > > > This gives you a mixture of tabs and spaces, which I don't like. I'd > rather use real tabs for indenting. If you then use another tab width, > you only see a wider indent, but the rest of the code is o

Re: Folding in vim

2005-07-05 Thread Sybren Stuvel
Benji York enlightened us with: > Your editor probably supports a "backspace unindents" option. Yes, it does. I'm using vim. > If using Vim it would be something like "set softtabstop=4". This gives you a mixture of tabs and spaces, which I don't like. I'd rather use real tabs for indenting. If

Re: Folding in vim

2005-07-05 Thread Benji York
Sybren Stuvel wrote: > I always use one tab for indents, and set my editor to display it as > four spaces. I like being able to unindent a line by deleting a single > character. Your editor probably supports a "backspace unindents" option. If using Vim it would be something like "set softtabstop

Re: Folding in vim

2005-07-05 Thread Mike Meyer
Sybren Stuvel <[EMAIL PROTECTED]> writes: > Andrea Griffini enlightened us with: >> - never ever use tabs > > I always use one tab for indents, and set my editor to display it as > four spaces. I like being able to unindent a line by deleting a single > character. I don't see a reason why _not_ to

Re: Folding in vim

2005-07-05 Thread Sybren Stuvel
Andrea Griffini enlightened us with: > - never ever use tabs I always use one tab for indents, and set my editor to display it as four spaces. I like being able to unindent a line by deleting a single character. I don't see a reason why _not_ to use tabs, really. As long as the use is consistent -

Re: Folding in vim

2005-07-05 Thread Terry Hancock
On Monday 04 July 2005 01:12 am, Andrea Griffini wrote: > - never ever use tabs; tabs were nice when they had > - stick to 4-space indent Nice ideals to which I ascribe. But if your editor isn't configured to support you on this, spacing over to, say column 24 gets pretty dull. Mine wasn't conf

Re: Folding in vim

2005-07-05 Thread Terry Hancock
On Monday 04 July 2005 12:41 am, Ron Adam wrote: > > Actually, I think this one is doing what I want now. It seems > > to be that it isn't robust against files with lots of mixed tabs > > and spaces. I also got "space_hi.vim" which highlights tabs > > and trailing spaces, which made it a lot easie

Re: Folding in vim

2005-07-04 Thread Terry Hancock
On Monday 04 July 2005 07:42 am, Ivan Van Laningham wrote: > Terry Hancock wrote: > > I also got "space_hi.vim" which highlights tabs > > and trailing spaces, which made it a lot easier to fix the > > problem. > > Is that really the name? I tried searching for it & got no hits. Sorry, no unders

Re: Folding in vim

2005-07-03 Thread Andrea Griffini
On Sun, 3 Jul 2005 22:42:17 -0500, Terry Hancock <[EMAIL PROTECTED]> wrote: >It seems to be that it isn't robust against files >with lots of mixed tabs and spaces. My suggestion is: - never ever use tabs; tabs were nice when they had a de-facto meaning (tabbing to next 8-space boundary) nowd

Re: Folding in vim

2005-07-03 Thread Ron Adam
Terry Hancock wrote: > On Saturday 02 July 2005 10:35 pm, Terry Hancock wrote: > >>I tried to load a couple of different scripts to >>automatically fold Python code in vim, but none of them >>seems to do a good job. >> >>I've tried: >>python_fold.vim by Jorrit Wiersma >>http://www.vim.org/sc

Re: Folding in vim

2005-07-03 Thread Terry Hancock
On Saturday 02 July 2005 10:35 pm, Terry Hancock wrote: > I tried to load a couple of different scripts to > automatically fold Python code in vim, but none of them > seems to do a good job. > > I've tried: > python_fold.vim by Jorrit Wiersma > http://www.vim.org/scripts/script.php?script_id=

Re: Folding in vim

2005-07-02 Thread Ron Adam
Terry Hancock wrote: > My general attitude towards IDEs and editors has been > extremely conservative, but today I decided to see what > this "folding" business was all about. > > I see that vim (and gvim, which is what I actually use) > has this feature, and it is fairly nice, but at present i

Folding in vim

2005-07-02 Thread Terry Hancock
My general attitude towards IDEs and editors has been extremely conservative, but today I decided to see what this "folding" business was all about. I see that vim (and gvim, which is what I actually use) has this feature, and it is fairly nice, but at present it's very manual --- and frankly it