vim configuration help
Gerhard Haering
gh at ghaering.de
Tue Apr 15 04:36:07 EDT 2003
Karl Scalet wrote:
> Hi Randall,
>
> Randall Smith wrote:
>
>> I'm learning Python and I've been looking for a good IDE to use with
>> it. I haven't found an IDE that has text editing capabilities close
>> to Vim/Emacs. [...]
>> I have no idea how to configure Vim. I'm a total newbie. Can someone
>> please help me get started. I'm looking to configure Vim for Python.
>> Autoindenting and 4 space tabs are high priority now.
>
> looking in my vimrc file:
>
> set autoindent
> set tabstop=4
> set shiftwidth=4
> set expandtab
>
> could give you a start
No, no, no! That's evil!
Tabs are 8 characters wide. Period. So you want something like this instead:
" Tabulator policy:
" - Show existing tabs as 8 spaces
" - Tab key/autoindent/reindent insert 4 spaces
set ts=8 sw=4 smarttab
set expandtab
The full glory of my .vimrc is attached ;-)
-- Gerhard
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: .vimrc
URL: <http://mail.python.org/pipermail/python-list/attachments/20030415/ee04fe87/attachment.ksh>
More information about the Python-list
mailing list