Loading ...
Sorry, an error occurred while loading the content.

Re: expandtab doesn't work properly when smartindent and copyindent are set.

Expand Messages
  • Bram Moolenaar
    ... Thanks! -- Kiss me twice. I m schizophrenic. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net /// sponsor Vim, vote for
    Message 1 of 3 , Aug 28, 2011
    • 0 Attachment
      Christian Brabandt wrote:

      > On So, 28 Aug 2011, Yukihiro Nakadaira wrote:
      >
      > > expandtab doesn't work properly when smartindent and copyindent are set.
      > > When indent is inserted by smartindent, Vim always uses <Tab> for it.
      > >
      > > $ vim -u NONE
      > > :set expandtab smartindent copyindent
      > > :execute "normal! i{\<CR>x"
      > >
      > > Then, second line is "<Tab>x".
      >
      > Here is a patch, including a test.

      Thanks!


      --
      Kiss me twice. I'm schizophrenic.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.