Skip to content

Commit c19945c

Browse files
committed
Make it possible to silence full screen message (issue #26)
1 parent c697297 commit c19945c

4 files changed

Lines changed: 24 additions & 7 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ On Windows the `:Fullscreen` command sets the Vim window to "always on top". Som
101101

102102
:let g:shell_fullscreen_always_on_top = 0
103103

104+
### The `g:shell_fullscreen_message` option
105+
106+
When you enter full screen the plug-in shows a Vim message explaining how to leave full screen. If you don't want to see this message you can set this option to false (0).
107+
104108
### The `g:shell_mappings_enabled` option
105109

106110
If you don't like the default mappings for the `:Open` and `:Fullscreen` commands then add the following to your [vimrc script] [vimrc]:

autoload/xolox/shell.vim

Lines changed: 3 additions & 3 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: June 30, 2014
3+
" Last Change: July 7, 2014
44
" URL: http://peterodding.com/code/vim/shell/
55

6-
let g:xolox#shell#version = '0.13.5'
6+
let g:xolox#shell#version = '0.13.6'
77

88
if !exists('s:fullscreen_enabled')
99
let s:enoimpl = "%s() hasn't been implemented on your platform! %s"
@@ -279,7 +279,7 @@ function! xolox#shell#fullscreen() " {{{1
279279
let s:fullscreen_enabled = !s:fullscreen_enabled
280280

281281
" Let the user know how to leave full-screen mode?
282-
if s:fullscreen_enabled
282+
if s:fullscreen_enabled && g:shell_fullscreen_message
283283
" Take a moment to let Vim's GUI finish redrawing (:redraw is
284284
" useless here because it only redraws Vim's internal state).
285285
sleep 50 m

doc/shell.txt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ Contents ~
1515
7. The |xolox#shell#is_fullscreen()| function
1616
8. The |g:shell_fullscreen_items| option
1717
9. The |g:shell_fullscreen_always_on_top| option
18-
10. The |g:shell_mappings_enabled| option
19-
11. The |g:shell_verify_urls| option
20-
12. The |g:shell_use_dll| option
18+
10. The |g:shell_fullscreen_message| option
19+
11. The |g:shell_mappings_enabled| option
20+
12. The |g:shell_verify_urls| option
21+
13. The |g:shell_use_dll| option
2122
4. Background |shell-background|
2223
5. Other full-screen implementations |shell-other-full-screen-implementations|
2324
6. Contact |shell-contact|
@@ -222,6 +223,13 @@ to your |vimrc| script:
222223
>
223224
:let g:shell_fullscreen_always_on_top = 0
224225
<
226+
-------------------------------------------------------------------------------
227+
The *g:shell_fullscreen_message* option
228+
229+
When you enter full screen the plug-in shows a Vim message explaining how to
230+
leave full screen. If you don't want to see this message you can set this
231+
option to false (0).
232+
225233
-------------------------------------------------------------------------------
226234
The *g:shell_mappings_enabled* option
227235

plugin/shell.vim

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim plug-in
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: August 19, 2013
3+
" Last Change: July 7, 2014
44
" URL: http://peterodding.com/code/vim/shell/
55

66
" Support for automatic update using the GLVS plug-in.
@@ -44,6 +44,11 @@ if !exists('g:shell_verify_urls')
4444
let g:shell_verify_urls = 0
4545
endif
4646

47+
if !exists('g:shell_fullscreen_message')
48+
" Set this to false (0) to disable the message when entering full screen.
49+
let g:shell_fullscreen_message = 1
50+
endif
51+
4752
" Automatic commands. {{{1
4853

4954
augroup PluginShell

0 commit comments

Comments
 (0)