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

Re: How to change indent in vim



Boyd Stephen Smith Jr. wrote:
In <[🔎] 4A31939D.4040601@symantec.com>, Bob McGowan wrote:
Boyd Stephen Smith Jr. wrote:
In <[🔎] 20090610160715.GA22215@tomgeorge.info>, Thomas H. George wrote:

-- deleted discussion of tabbing --


Being disciplined with tabbing (indentation), spacing (alignment), and line-
breaking/word-wrapping can allow your code/text to be beautiful independent of the viewers tab stop settings or terminal width.

This is fine, for a particular workgroup who have a defined discipline.

But I've had consistent problems with downloaded code, where different disciplines have been used. I end up with some lines indented less/more than others, in haphazard patterns, that make it impossible to determine which line belongs where, visually. And, there's no notation/comment in the file telling me what tabstop setting was used, so I have to experiment with various values until the right one is found. Or, at least, the one I "think" is right.

I'm not familiar with the 'list' option, perhaps that would solve the above issue? I would love to be able to have consistent results, regardless of the file source.

The 'expandtab' only affects _my_ editing input, not existing tabs, so there are no "spurious" changes made that would result in a "white space fix", as far as I can see.

--
Bob McGowan

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Reply to: