Am 2014-09-18 16:12, schrieb Adelar da Silva Queiróz:
On Sunday, September 14, 2014 2:10:34 PM UTC-3, Bee wrote:
mapping or cmdheight bug?

Linux Mint 17 Cinnamon
gvim and vim 7.4.52 (installed via apt-get)
vim 7.4.443 (compiled from source)

MacOS 10.4.11
vim 7.4.442 (compiled from source)

Is this a vim bug or a problem with my mapping?

Create this mapping:
nmap ,l :ls!<cr>:b

If I set:
set cmdheight=2 (or 1)
and use the above mapping all files are listed followed by :b

If I set:
set cmdheight=3 (or any value >= 3)
only the :b is displayed.

If I issue the command `:ls!` the files are listed for any value of cmdheight.

On Gvim 7.4.443 (Windows 7) works fine.

I can reproduce the issue on Windows as well.
I think, the behaviour depends on how many buffers you have loaded. If the output of :ls! causes a scroll, then it will be shown, but if the output fits in the cmdwin height, then the :b overwrites it. Not sure, how to fix it though.

Best,
Christian

--
--
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.

Raspunde prin e-mail lui