Graham Lawrence wrote:
> I start gvim with this entry in .bashrc
>
> alias G='gvim -fg white -bg black -geom 80x45 '
> and have in .vimrc
> set guioptions=aeik
>
> which works as expected and gives me a gvim that looks like vim in a tty,
> except that the 3 lines lost by removing the menu and toolbar are gone, and
> the remaining geometry is 80x42.
>
> Making the initial geometry 80x48 to compensate does not work as this asks
> for a window taller than the screen, and apparently is just ignored. How
> can I get rid of the menu and toolbar and also maximize the window height?
You should be able to resize the window after setting 'guioptions' with
set guioptions=aeik
set lines=45
There is a corresponding 'columns' option too, so you might be able to put
set columns=80 lines=45
in your vimrc after setting 'guioptions' and then you wouldn't need the
"-geom" flag in your alias anymore. (If you want different window sizes in
different situations, though, maybe this wouldn't make sense.)
HTH,
Benjamin
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/kdd5ci1a.2k7a88%40bdesham.net.
Sunday, August 2, 2020
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment