vim fullscreen in ubuntu

374 views
Skip to first unread message

Владимир Сидоренко

unread,
Sep 20, 2008, 1:28:44 PM9/20/08
to vim...@googlegroups.com
hi

how to make vim fullscreen (no borders, no panels) in ubuntu?

thanks.

Anton Sharonov

unread,
Sep 20, 2008, 2:39:28 PM9/20/08
to vim...@googlegroups.com
If you mean under "fullscreen" just: "hide scrollbars and toolbar for
gui vim version", than you can put following in your vimrc.

if has("gui_running")
set guioptions=aiA " Disable toolbar, menu bar, scroll bars
endif " has("gui_running")

If you mean "true fullscreen":

- GUI version - AFAIK it isn't yet possible
- terminal - depends on whether your terminal supports "fullscreen".
I use xterm on linux and AFAIK it can't go fullscreen (but I never
specially looked for that). Another option to get "fullscreen" is to
run vim in native linux console. I know, you are interesting in
solution for ubuntu, but just for the case, if you will use PuTTY on
windows computers (for local cygwin vim or for vim started in remote
ssh session) - PuTTY can also go "fullscreen".

Anton.

2008/9/20, Владимир Сидоренко <yoya...@gmail.com>:

François Ingelrest

unread,
Sep 21, 2008, 2:50:39 AM9/21/08
to vim...@googlegroups.com
On Sat, Sep 20, 2008 at 19:28, Владимир Сидоренко <yoya...@gmail.com> wrote:
> how to make vim fullscreen (no borders, no panels) in ubuntu?

If by « Ubuntu » you mean Gnome, try to go to System -> Preferences ->
Keyboard shortcuts. Under « Window management », you should find «
Toggle fullscreen mode » and its associated shortcut (for me it's
Alt-L). If there is none, then just create one.

Владимир Сидоренко

unread,
Sep 23, 2008, 12:56:00 PM9/23/08
to vim...@googlegroups.com
by fullscreen i mean when i don't see anything except vim.
no window borders, no vim's window title and no gnome panels

2008/9/21 François Ingelrest <francois....@gmail.com>

Tim Chase

unread,
Sep 23, 2008, 2:07:17 PM9/23/08
to vim...@googlegroups.com
> by fullscreen i mean when i don't see anything except vim.
> no window borders, no vim's window title and no gnome panels

This is usually related to your window-manager. I use Fluxbox as
my WM, and I can toggle chrome with one keychord (in my case
Win+F12) and maximize the window (Win+X) or maximize vertically
(Win+Shift+X) depending on what I want. I have my toolbar/slit
set to auto-hide so maximization covers the entire screen.
Additionally, I usually run in a terminal (xterm or rxvt) so I
don't have the gVim chrome (though with gvim, I also tweak my
'guioptions' to remove toolbars, menus, etc)

The germane entries from my ~/.fluxbox/keys file:

Mod4 F12 :ToggleDecor
Mod4 x :Maximize
Mod4 Shift x :MaximizeVertical

Fluxbox also has options to control whether you can maximize over
the toolbar/slit. I don't know how that applies for things like
gnome/kde/xfce panels.

You'd have to look for some sort of corresponding options in your
WM of choice.

-tim


Tony Mechelynck

unread,
Sep 23, 2008, 7:08:36 PM9/23/08
to vim...@googlegroups.com

I don't use Ubuntu but openSUSE Linux with KDE (i.e., kdm) winmanager.
Here I can set fullscreen mode by clicking the program icon at top left,
then Advanced => Fullscreen. Since Vim has no command to unset
fullscreen mode, I need to do it (if I want it) by activating the menu
from the keyboard using Alt-F3 (then Advanced => Fullscreen again).

Best regards,
Tony.
--
It is difficult to produce a television documentary that is both
incisive and probing when every twelve minutes one is interrupted by
twelve dancing rabbits singing about toilet paper.
-- Rod Serling

Reply all
Reply to author
Forward
0 new messages