" Function: Toggle full screen mode in gvim (when supported by wmctrl) function! ToggleFullScreen() call system("wmctrl -i -r ".v:windowid." -b toggle,fullscreen") redraw endfunction