On Mon, Dec 22, 2008 at 7:01 PM, pansz <[email protected]> wrote:
> Strange to hear that, that is the way I am using now, and I don't see
> any problems using only space for indent in Vim.

Different people have different preferences regarding tabs vs spaces,
and mine are to use tabs for indentation since that what tabs are for.
Spaces are used for indentation due to the limitation of editors
(something I thought Vim of all editors could do) to interpret
indentation vs alignment.

Why tabs:
http://www.movementarian.org/docs/whytabs/
http://www.derkarl.org/why_to_tabs.html

> What do you really want?

As my original email in the thread describes, I want tabs for
indentation and spaces for alignment. Any whitespace that appears
after non-whitespace should be spaces. The Vim script Smart Tabs
handles this correctly.

The problem is when there are *multi-line* statements, which as Gary
mentioned Vim does not handle properly. When a statement is split over
multiple lines, alignment should not be solved using indentation.
E.g.:

foo (int a,
.....int b,
.....int c);

should not be

foo (int a,
<tab>int b,
<tab>int c);


I thought this would have been something Vim users would have
complained about. Emacs has a fix for it (with a few line of
configuration scripting), but it sounds like Vim's plugins cannot
extend into the editor for language-specific support. Is this correct
that this behavior cannot be reproduced in Vim with plugins?

Regards,
Oliver

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to