Alexei Alexandrov wrote:

> I was hesitating where to post this message to: editors.vim or
> editor.vim.devel, since I'm not sure if it's bug or I'm just missing
> something. Finally I decided to treat this as a bug.
> 
> Problem: I can't get copyindent/preserveindent options working.
> 
> The scenario to reproduce:
> 
> $ gvim -u NONE -U NONE --noplugin
> 
> Then, go to insert mode (i), type a Tab (C-V, C-I), type hello. Go
> back to normal mode.
> Do: set preserveindent copyindent autoindent expandtab
> Go to insert mode again and add a new line after the existing one.
> 
> The new line will be indented with spaces, while it is expected that
> the tab from the previous line will be copied.
> 
> P.S. It's a Windows x86 box, VIM 7.0.195

Apparently when you have 'expandtab' set then the copied tab is expanded
into spaces.  I suppose you have set this combination of option values
to be able to have tabs copied and only when you press <Tab> to add spaces.

Let's call this a bug.

-- 
ARTHUR: This new learning amazes me, Sir Bedevere.  Explain again how sheep's
        bladders may be employed to prevent earthquakes.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to