[Tutor] Enable Python feature in vim editor

Leam Hall leamhall at gmail.com
Tue Nov 23 11:01:35 EST 2021


On 11/23/21 08:39, Mats Wichmann wrote:
> On 11/22/21 12:06, Leam Hall wrote:
>> Hey Kaushal,
>>
>> Here's part of my ~/.vimrc. You can do a lot with it, and there are likely Python specific plugins.
> 
> those are some pretty odd settings...  for Python autoindent would seem more natural than noautoindent, and noexpandtab means tabs have the unfortunate opportunity to live in your edited content - you're pretty much agreeing to not use the tab key in Python coding in that case.
> 
> Curious how you came to these?

Hey Mats!

When I first learned Python, the "whitespace is significant" thing made a lot of sense. After that my shell, Perl, and Ruby code looked a lot like my Python.  :)  I've been on a Go phase for a bit, and those are Go settings, to match "go fmt". I'd agree though, for Python I prefer two spaces as indent, and no tabs in code at all.

Leam

-- 
Systems Programmer         (reuel.net/resume)
Scribe: The Domici War     (domiciwar.net)
General Ne'er-do-well      (github.com/LeamHall)


More information about the Tutor mailing list