Is there a way to turn gvim into fullscreen mode? I know that this is possible on OS X through MacVim, but wasn't able to find a way to do it on Ubuntu.
The system settings do not work for me on Ubuntu 12.04 (as happens to miloshadzic) because gvim catches the F11 key and does not pass it on to the system.
With gnome you can set a shortucut to the "fullscreen" action. Use gnome-keybinding-properties, select Window Managaer and choose Change to Fullscreen, then select a shorcut (F11 for example). This shortcut will set the current Gnome Window in fullscreen mode.
This doesn't work unless the Enable Extra WM Actions plugin is checked in the Compiz Settings Manager
The system settings do not work for me on Ubuntu 12.04 (as happens to miloshadzic) because gvim catches the F11 key and does not pass it on to the system.
There is a solution though, that I found in this blog
make sure you have
wmctrl
installed. If you have that, then add the following to your vimrc:And on save of the .vimrc and restart of gvim F11 now has the desired effect.
With gnome you can set a shortucut to the "fullscreen" action. Use gnome-keybinding-properties, select Window Managaer and choose Change to Fullscreen, then select a shorcut (F11 for example). This shortcut will set the current Gnome Window in fullscreen mode.
This doesn't work unless the Enable Extra WM Actions plugin is checked in the Compiz Settings Manager
For XFCE Users: Alt+F11 works out of the box
You can also switch into fullscreen mode by changing the lines and columns settings. Try to put this into your vimrc:
Maximised window instead of fullscreen
If you have a right-side XFCE launcher panel, the
fullscreen
option ofwmctrl
causesgvim
to overlap.Below variant with
maximized_vert,maximized_horz
resolves this issue and enables F11 for maximised window toggling:Automated, upon starting
gvim
Place the following line in
gvimrc
, for a foolproof fullscreen atgvim
startup:On Ubuntu cinnamon go to
Keyboard
->Shortcuts
->Windows
->Toggle fullscreen state
. Set asF11
for example.