On Tue, April 19, 2011 4:30 pm, Randy Morris wrote: > Greetings, > > I may have found a bug in indenting behavior depending on whether or not > 'list' is set. Can someone try to reproduce and/or explain what is > happening if it's not a bug? > > test.vim: > > set noet ts=8 sts=4 sw=4 list > > > vim -u test.vim: (type exactly the following) > > idef foo():<Enter> > <Tab>bar = 'baz'<Enter> > <Esc>:set nolist<Enter> > idef foo():<Enter> > <Tab>bar = 'baz'<Enter> > <ESC>:set list<Enter> > > > The output should be similar to: > > def foo(): > ^I^Ibar = 'baz' > > def foo(): > bar = 'baz' > > > More simply, just press <Tab><Enter> with list on and with list off, you > get completely different results. With list on two tab characters are > inserted into the file, with list off four spaces are inserted instead. > > Any ideas?
That looks like some obscure vi behaviour, that is triggered in 'compatible' mode. That should go away, if you start vim with the -N argument (meaning to no start vim in vi-compatible mode). This behaviour is mentioned briefly in the help at :h cpo-L Looking at the help I don't know, whether this is a feature or a bug. At least it is not clear to me, how this is supposed to work. regards, Christian -- You received this message from the "vim_use" 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
