fritzophrenic wrote: > > On Dec 23, 8:52 am, Brett Stahlman <[email protected]> wrote: > >> As I mentioned in an earlier post, simply set ts and sw to the same >> value, and Vim will not mix spaces and tabs for leading indents. >> >> > > True, but this is not what is being asked. > > The desired behavior is for Vim to automatically do something like > this: > > {tab}{tab}{tab}if (a == b && > {tab}{tab}{tab}....c == d && > {tab}{tab}{tab}....e == f) > {tab}{tab}{tab}{ > {tab}{tab}{tab}{tab}foo(); > {tab}{tab}{tab}} > > Note that actual TAB characters are used for indent, but spaces are > used for alignment. > I feel the need to make my tuppence worth...so I'm gonna :
I'm curious how the distinction between 'indent' and 'alignment' has been made. I see them as exactly the same thing; as English words, I mean. It's obvious from the diagram above what is meant, but the purpose of the 'indent' is to 'align'... ...or am I missing something? How is the difference between the two instances above best described? Perhaps 'block indentation' as apposed to 'line-wrapping indentation'? I wonder if it's getting to the point where vim would have to be a compiler in order to make these distinctions accurately. Perhaps that's something that is easier for something like Emacs to do. I would like to be able to make use of a real compiler in order to do this kind of code parsing. I'm told that the gcc people, for example, aren't really interested in doing this. Max. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
