summaryrefslogtreecommitdiff
path: root/runtime/plugin/NetrwFileHandlers.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-07-02 15:38:35 +0000
committerBram Moolenaar <Bram@vim.org>2004-07-02 15:38:35 +0000
commitcfbc5ee48e1b582f418f2d92ccbc4c4e84c803e1 (patch)
tree7586fe6160998a4c76a48dab221e38efe55257ef /runtime/plugin/NetrwFileHandlers.vim
parent843ee41eb8258ac50ed81976757d8b228382a880 (diff)
downloadvim-cfbc5ee48e1b582f418f2d92ccbc4c4e84c803e1.zip
updated for version 7.0004
Diffstat (limited to 'runtime/plugin/NetrwFileHandlers.vim')
-rw-r--r--runtime/plugin/NetrwFileHandlers.vim15
1 files changed, 11 insertions, 4 deletions
diff --git a/runtime/plugin/NetrwFileHandlers.vim b/runtime/plugin/NetrwFileHandlers.vim
index 102d8d45f..401fc58b1 100644
--- a/runtime/plugin/NetrwFileHandlers.vim
+++ b/runtime/plugin/NetrwFileHandlers.vim
@@ -1,11 +1,12 @@
" NetrwFileHandlers: contains various extension-based file handlers for
" netrw's browser
" Author: Charles E. Campbell, Jr.
-" Date: Jun 25, 2004
-" Version: 1
+" Date: Jul 02, 2004
+" Version: 2
" ---------------------------------------------------------------------
-" NetrwFileHandler_html: handles html
+" NetrwFileHandler_html: handles html when the user hits "x" when the
+" cursor is atop a *.html file
fun! NetrwFileHandler_html(webpage)
" call Dfunc("NetrwFileHandler_html(".a:webpage.")")
@@ -17,8 +18,14 @@ fun! NetrwFileHandler_html(webpage)
else
let page= substitute(a:webpage,'^\w\+://\%(\w*@\)\=\(\w\+\)/','http://\1/','e')
endif
+
+ if executable("mozilla")
" call Decho("executing !mozilla ".page)
- exe "!mozilla ".page
+ exe "!mozilla ".page
+ elseif executable("netscape")
+" call Decho("executing !netscape ".page)
+ exe "!netscape ".page
+ endif
" call Dret("NetrwFileHandler_html")
endfun