Skip to content

Commit 42f1549

Browse files
committed
Merge pull request #25: Support MacVim fullscreen
2 parents 80f04f0 + 5d79d74 commit 42f1549

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This plug-in aims to improve the integration between [Vim] [vim] and its environ
1010

1111
* The `xolox#misc#os#exec()` function enables other Vim plug-ins (like my [easytags.vim] [easytags] plug-in) to execute external commands in the background (i.e. asynchronously) *without opening a command prompt window on Windows*.
1212

13-
Two [Windows DLL files] [dll] are included to perform these functions on Windows, while on UNIX external commands are used.
13+
Two [Windows DLL files] [dll] are included to perform these functions on Windows, while on UNIX external commands are used. MacVim supports full-screen out of the box (and vim-shell knows how to enable it) but is otherwise treated as UNIX.
1414

1515
## Installation
1616

@@ -136,8 +136,8 @@ If you have questions, bug reports, suggestions, etc. the author can be contacte
136136

137137
## License
138138

139-
This software is licensed under the [MIT license] [mit].
140-
© 2013 Peter Odding &lt;<peter@peterodding.com>&gt;.
139+
This software is licensed under the [MIT license] [mit].
140+
© 2014 Peter Odding &lt;<peter@peterodding.com>&gt;.
141141

142142

143143
[:make]: http://vimdoc.sourceforge.net/htmldoc/quickfix.html#:make

autoload/xolox/shell.vim

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" Vim auto-load script
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: September 2, 2013
3+
" Last Change: June 16, 2014
44
" URL: http://peterodding.com/code/vim/shell/
55

6-
let g:xolox#shell#version = '0.13.2'
6+
let g:xolox#shell#version = '0.13.3'
77

88
if !exists('s:fullscreen_enabled')
99
let s:enoimpl = "%s() hasn't been implemented on your platform! %s"
@@ -233,6 +233,12 @@ function! xolox#shell#fullscreen() " {{{1
233233
if error != ''
234234
throw "shell.dll failed with: " . error
235235
endif
236+
elseif has('macunix') && has('gui')
237+
if !s:fullscreen_enabled
238+
set fullscreen
239+
else
240+
set nofullscreen
241+
endif
236242
elseif has('unix')
237243
if !executable('wmctrl')
238244
let msg = "Full-screen on UNIX requires the `wmctrl' program!"

doc/shell.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ This plug-in aims to improve the integration between Vim and its environment
4848
(i.e. asynchronously) _without opening a command prompt window on Windows_.
4949

5050
Two Windows DLL files [3] are included to perform these functions on Windows,
51-
while on UNIX external commands are used.
51+
while on UNIX external commands are used. MacVim supports full-screen out of
52+
the box (and vim-shell knows how to enable it) but is otherwise treated as
53+
UNIX.
5254

5355
===============================================================================
5456
*shell-installation*
@@ -299,7 +301,7 @@ If you like the plug-in please vote for it on Vim Online [15].
299301
*shell-license*
300302
License ~
301303

302-
This software is licensed under the MIT license [16]. Š 2013 Peter Odding
304+
This software is licensed under the MIT license [16]. Š 2014 Peter Odding
303305
<peter@peterodding.com>.
304306

305307
===============================================================================

0 commit comments

Comments
 (0)