Manuel Ortega wrote:
> Patch 8.0.1275 has broken vim.
>
> Start up vim (with or without --clean, etc.) and do
>
> edit ~/.profile | lcd %:h
>
> Expected behavior: Vim puts .profile in the buffer, and in the cmdline I see
>
> "~/.profile" 178L, 6171C
>
> Since the offending patch, whenever I do this command, Vim also sees fit to
> show the name of the directory I lcd'd to, which results in *two* lines of
> output that require me to hit ENTER before I can get to editing my
> ~/.profile:
>
> "~/.profile" 178L, 6171C
> /Users/mortega
> Press ENTER or type command to continue
>
> Vim is supposed to show the first line of that, but I don't know why the
> second line is now appearing below the first. (I think that the "press
> ENTER" is simply because there are more lines of output than &ch allows.)
> The new behavior is intolerably irritating. (Commands like the one used
> to illustrate the problem are usefully made into user-defined commands with
> short names, to making editing commonly-edited files easy.)
>
> This is reproducible with `vim --clean` and `vim -u NONE -N`, and also it
> works if you skip the custom command and enter `edit ~/.profile | lcd %:h`
> directly on the cmdline.
>
> The only reason I didn't notice this immediately is because MacVim has a
> small lag in patchlevel.
This is actually a bug fix. ":lcd" always displays the directory when
the command is typed. The reason you didn't get it before 8.0.1275 is
that the flag, indicating the command was typed, was accidentally reset.
That bug has now been fixed.
You can avoid the message by using ":silent":
edit ~/.profile | silent lcd %:h
A simpler way is to set 'cmdheight' to 2.
--
hundred-and-one symptoms of being an internet addict:
10. And even your night dreams are in HTML.
/// Bram Moolenaar -- [email protected] -- 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.