osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Vim settings for Python (was: tab replace to space 4)


On 2019-12-07 11:59:31 -0800, Bill Campbell wrote:
> On Sat, Dec 07, 2019, Peter J. Holzer wrote:
> >As an aside, to prevent vim from inserting tabs in the first place, set
> >    expandtab
> >    sw=4
> >and maybe also
> >    ts=4
> 
> Inserting a comment in the file like this makes thing easy.
> 
> # vim: expandtab sw=4 ts=4 nows wm=0

Yeah, I do that a lot.

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp at hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20191208/848badbc/attachment.sig>