Skip to content

Commit

Permalink
Merge pull request #25: Support MacVim fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Jun 16, 2014
2 parents 80f04f0 + 5d79d74 commit 42f1549
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions autoload/xolox/shell.vim
@@ -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"
Expand Down Expand Up @@ -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!"
Expand Down
6 changes: 4 additions & 2 deletions doc/shell.txt
Expand Up @@ -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*
Expand Down Expand Up @@ -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>.

===============================================================================
Expand Down

0 comments on commit 42f1549

Please sign in to comment.