Hi ZyX!
On Fr, 28 Sep 2012, ZyX wrote:
> > When I start vim and execute
> >
> > :echo b:undo_ftplugin
> >
> > I see
> >
> > setl inde< indk<
> >
> > as expected. Further, ":ls" shows
> >
> > 1 %a "[No Name]" line 1
> >
> > Now, if I open a C file, I expect to have 'indentexpr' empty, either
> > because the C file is opened in a new buffer or because the C file
> > was opened in the same buffer and the b:undo_ftplugin was executed.
> > However, after executing
> >
> > :e foo.c :set indentexpr?
> >
> > I see
> >
> > indentexpr=indent(prevnonblank(v:lnum-1))
> >
> > and ":ls" shows
> >
> > 1 %a "foo.c" line 1
> Yes, for some reason empty buffers without edits are used to open a
> new file. You can get the same behavior after “:enew” then “edit
> bar.c”.
That just means it is a bug. It should have been reset by the time the
new buffer was loaded.
regards,
Christian
--
Bescheidenheit ist eine Eigenschaft, für die der Mensch bewundert
wird, falls die Leute je von ihm hören sollten.
-- Edgar Watson Howe
--
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