1 " Vim plug-in
 2 " Author: Peter Odding <peter@peterodding.com>
 3 " Last Change: August 30, 2010
 4 " URL: http://peterodding.com/code/vim/shell/
 5 " License: MIT
 6 " Version: 0.7.3
 7 
 8 " Support for automatic update using the GLVS plug-in.
 9 " GetLatestVimScripts: 3123 1 :AutoInstall: shell.zip
10 
11 " Configuration defaults. {{{1
12 
13 if !exists('g:shell_mappings_enabled')
14   " Set this to false (0) if you don't like the default mappings.
15   let g:shell_mappings_enabled = 1
16 endif
17 
18 if !exists('g:shell_fullscreen_items')
19   " Change this if :Fullscreen shouldn't hide the menu/toolbar/tabline.
20   let g:shell_fullscreen_items = 'mTe'
21 endif
22 
23 if !exists('g:shell_open_cmds')
24   " This is only needed on UNIX, should already support most platforms.
25   let g:shell_open_cmds = ['gnome-open', 'kde-open', 'exo-open', 'xdg-open']
26 endif
27 
28 if !exists('g:shell_hl_exclude')
29   " URL highlighting breaks highlighting of <a href="..."> tags in HTML.
30   let g:shell_hl_exclude = '^\(x|ht\)ml$'
31 endif
32 
33 if !exists('g:shell_patt_url')
34  let g:shell_patt_url = '\<\w\{3,}://\(\S*\w\)\+[/?#]\?'
35 endif
36 
37 if !exists('g:shell_patt_mail')
38  let g:shell_patt_mail = '\<\w[^@ \t\r]*\w@\w[^@ \t\r]\+\w\>'
39 endif
40 
41 " Automatic commands. {{{1
42 
43 augroup PluginShell
44   " These enable automatic highlighting of URLs and e-mail addresses.
45   autocmd! BufNew,BufRead,Syntax * call xolox#shell#highlight_urls()
46 augroup END
47 
48 " Regular commands. {{{1
49 
50 command! -bar -nargs=? -complete=file Open call xolox#shell#open_cmd(<q-args>)
51 command! -bar Fullscreen call xolox#shell#fullscreen()
52 
53 " Default key mappings. {{{1
54 
55 if g:shell_mappings_enabled
56   inoremap <F11> <C-o>:Fullscreen<CR>
57   nnoremap <F11> :Fullscreen<CR>
58   inoremap <F6> <C-o>:Open<CR>
59   nnoremap <F6> :Open<CR>
60 endif
61 
62 " vim: ts=2 sw=2 et fdm=marker