Saturday, February 22, 2014

Re: When starting gvim with command line arguments it needs a keypress before showing the file content, why?

On 22/02/14 10:23, William Robertson wrote:
> You just made me check how to specify a search when opening a file, which I've wondered how to do for a while - thanks!
>
> gvim +/pattern
>
> seems to work nicely, with no prompt/keypress.
>

Ben Fritz's counsel to set 'cmdheight' to 2 or more is a good one
anyway, because there are many circumstances in which Vim will (try to)
display two lines of messages in the command-line area.

I have

if &cmdheight < 2
set cmdheight=2
endif

in my vimrc for this reason (and the "if" wrapper to allow a higher
value to be set on the command-line).


Best regards,
Tony.
--
Whatever you want to do, you have to do something else first.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: