On Mon, Dec 22, 2008 at 1:57 PM, Erik Hahn <[email protected]> wrote:
>
> Check out this [1] script.
>
> 1. http://www.vim.org/scripts/script.php?script_id=231
I did. However, it looks like this only "automatically converts" tabs
to spaces during the middle of a line. For the example I gave:
int main() {
<tab>if (1)
<tab><tab>int a = test(
<tab><tab>.............param1, // [1]
<tab><tab>.............param2,
<tab><tab>............);
}
the script does not treat the param line [1] any differently than any
other line. It's not really context aware of the programming language.
Even if I *manually* space my way to param1 after the initial 2 tabs,
Vim will convert my spaces to tabs when I >> or <<. Is there no way to
let Vim recognize that spaces are a part of the contents and not
indent? Of course, it would be much better if Vim could automatically
insert spaces to the appropriate column when I break a statement into
multiple lines.
Cheers,
Oliver
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---