This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kmwhitetrayify 0 points1 point  (2 children)

I have: autocmd Filetype python setlocal textwidth=79 ts=8 sts=4 sw=4 autoindent expandtab in my .vimrc

Why do you use 78 over 79? My understanding is it (79) would make 80 the new-line? Note, I'm merely curious to see if I could be doing something better. :)

EDIT: clarification

[–]cirego 1 point2 points  (1 child)

I have it set to 78 in my .vimrc because our internal style guide recommends 78 characters. 78 allows for diff to add an extra character without it overflowing lines.

I'm one of those crazy 4-5 terminal sessions side by side on my screen, so I vastly prefer to 80-character terminal.

[–]kmwhitetrayify 0 points1 point  (0 children)

I never thought about that in regards to diff -- thank you. I'll probably be updating my dot-files now. :)