Permalink
Browse files

Merge pull request #25: Support MacVim fullscreen

  • Loading branch information...
2 parents 80f04f0 + 5d79d74 commit 42f15492d7ebe22c0b603ea8978e22bc3562d9a9 @xolox committed Jun 16, 2014
Showing with 15 additions and 7 deletions.
  1. +3 −3 README.md
  2. +8 −2 autoload/xolox/shell.vim
  3. +4 −2 doc/shell.txt
View
@@ -10,7 +10,7 @@ This plug-in aims to improve the integration between [Vim] [vim] and its environ
* 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*.
-Two [Windows DLL files] [dll] are included to perform these functions on Windows, while on UNIX external commands are used.
+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.
## Installation
@@ -136,8 +136,8 @@ If you have questions, bug reports, suggestions, etc. the author can be contacte
## License
-This software is licensed under the [MIT license] [mit].
2013 Peter Odding &lt;<peter@peterodding.com>&gt;.
+This software is licensed under the [MIT license] [mit].
2014 Peter Odding &lt;<peter@peterodding.com>&gt;.
[:make]: http://vimdoc.sourceforge.net/htmldoc/quickfix.html#:make
@@ -1,9 +1,9 @@
" Vim auto-load script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: September 2, 2013
+" Last Change: June 16, 2014
" URL: http://peterodding.com/code/vim/shell/
-let g:xolox#shell#version = '0.13.2'
+let g:xolox#shell#version = '0.13.3'
if !exists('s:fullscreen_enabled')
let s:enoimpl = "%s() hasn't been implemented on your platform! %s"
@@ -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!"
View
@@ -48,7 +48,9 @@ This plug-in aims to improve the integration between Vim and its environment
(i.e. asynchronously) _without opening a command prompt window on Windows_.
Two Windows DLL files [3] are included to perform these functions on Windows,
-while on UNIX external commands are used.
+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.
===============================================================================
*shell-installation*
@@ -299,7 +301,7 @@ If you like the plug-in please vote for it on Vim Online [15].
*shell-license*
License ~
-This software is licensed under the MIT license [16]. Š 2013 Peter Odding
+This software is licensed under the MIT license [16]. Š 2014 Peter Odding
<peter@peterodding.com>.
===============================================================================

0 comments on commit 42f1549

Please sign in to comment.