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

2019-12-08 Thread Peter J. Holzer
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. >

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

2019-12-07 Thread Bill Campbell
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 Bill -- INTERNET:

Re: Vim settings for Python

2019-12-07 Thread 황병희
Hello Peter^^^ > As an aside, to prevent vim from inserting tabs in the first place, set > expandtab > sw=4 > and maybe also > ts=4 > (The latter is very much a matter of taste. I don't unless I have to > edit code which already contains tabs intended to be at a certain width.)

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

2019-12-07 Thread Bev In TX
> On Dec 7, 2019, at 4:16 AM, 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 > (The latter is very much a matter of taste. I don't unless I have to > edit code which already contains tabs

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

2019-12-07 Thread Peter J. Holzer
On 2019-11-29 13:46:38 +0900, 황병희 wrote: > usally i write python code in gnu emacs on ubuntu 18.04 sometimes i > re-edit the code vim in same machine so often when i do run the code in > shell like as ./test.py i meet consol error -- which line wrong! > > so i am considering how can i replace all