From 5d79d74b790a74eba94c5c2d0cf80897dd6559f0 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Wed, 29 Jan 2014 19:42:46 -0700 Subject: [PATCH] Support MacVim fullscreen Signed-off-by: Christopher Larson --- autoload/xolox/shell.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autoload/xolox/shell.vim b/autoload/xolox/shell.vim index 4871796..a1f7fd8 100644 --- a/autoload/xolox/shell.vim +++ b/autoload/xolox/shell.vim @@ -233,6 +233,12 @@ function! xolox#shell#fullscreen() " {{{1 if error != '' throw "shell.dll failed with: " . error endif + elseif has('macunix') && has('gui') + if !s:fullscreen_enabled + set fullscreen + else + set nofullscreen + endif elseif has('unix') if !executable('wmctrl') let msg = "Full-screen on UNIX requires the `wmctrl' program!"