On 2007-03-07, Alexei Alexandrov <[EMAIL PROTECTED]> wrote: > Hi All! > > 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.
>From ":help preserveindent": Normally the indent is replaced by a series of tabs followed by spaces as required (unless |'expandtab'| is enabled, in which case only spaces are used). HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Mobile Broadband Division | Spokane, Washington, USA