From: Steve Hall <digitect@mi...> - 2006-02-21 18:51:14
From: nom de guerre, Feb 21, 2006 6:59 AM
> i have some problems with setting the correct behaviour of tab
> expansion. i want to turn it off. so i was trying (in my config
> set expandtab
> but it seems to be overwritten somewhere..
> i tryied:
> " autowrap and expandtabs (default 0)
> let g:CREAM_AUTOWRAP = 1
To turn it off, you can use
let g:CREAM_AUTOWRAP = 0
> but i don't see the effect and the comment has different meening
> than the name of the variable.
> i also tried to guess ;]
> " expand tab
> let g:CREAM_EXPANDTAB = 1
> but no change either..
let g:CREAM_EXPANDTAB = 0
or Ctrl+T will turn expansion into spaces off. But this will be
overwritten by the AutoWrap state on buffer change or re-start...
> mainly i want to use this option while editing sources, so i was
> trying also:
> autocmd BufNewFile,BufRead <cpp> set expandtab
> but again it seems to be overwritten somewhere..
> i didn't have much time so i haven't been searching very carefully.
> any ideas? thanks in advance?
I think you probably just want to turn off AutoWrap. This turns off
expansion and will not break a line unless you hit Enter. These two
behaviors are coupled because they share the same attitude towards
whitespace formatting--the only real reason to force leading spaces is
for a predictable line length.
Steve Hall [ digitect mindspring com ]
:: Cream... something good to put in your Vim!