A little disappointed so far

Graham Nicholls graham at rockcons.co.uk
Mon May 19 16:19:05 EDT 2003


Robin Munn wrote:

> Graham Nicholls <graham at rockcons.co.uk> wrote:
>
> 3. Start using space characters for indentation. You can still get the
> "feel" of using tabs with the right editor options. In my .vimrc, for
> example, I have the following options:
>     set tabstop=8
>     set shiftwidth=4
>     set expandtab
>     set smarttab
> The "smarttab" option is the key here: it lets me hit the Tab key at the
> start of a line to indent by (shiftwidth) characters. Disadvantages:
> you're not using tabs; if that's important to you, you won't like this
> method. Advantages: this actually "feels" like you're inserting Tabs,
> but space characters are actually going into the file. And pressing the
> Backspace key also dedents by the appropriate amount.
> 
Now in .vimrc
Ta.
Graham
-- 
Graham Nicholls
All round good guy.




More information about the Python-list mailing list