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