Mercurial > vim
comparison runtime/plugin/NetrwFileHandlers.vim @ 482:6f8b578776ab v7.0131
updated for version 7.0131
author | vimboss |
---|---|
date | Tue, 16 Aug 2005 23:01:50 +0000 |
parents | e6dfeb0a0f53 |
children |
comparison
equal
deleted
inserted
replaced
481:66080ac5dab7 | 482:6f8b578776ab |
---|---|
1 " NetrwFileHandlers: contains various extension-based file handlers for | 1 " NetrwFileHandlers: contains various extension-based file handlers for |
2 " netrw's browsers' x command ("eXecute launcher") | 2 " netrw's browsers' x command ("eXecute launcher") |
3 " Author: Charles E. Campbell, Jr. | 3 " Author: Charles E. Campbell, Jr. |
4 " Date: Aug 08, 2005 | 4 " Date: Aug 15, 2005 |
5 " Version: 5a NOT RELEASED | 5 " Version: 6 |
6 " Copyright: Copyright (C) 1999-2005 Charles E. Campbell, Jr. | 6 " Copyright: Copyright (C) 1999-2005 Charles E. Campbell, Jr. {{{1 |
7 " Permission is hereby granted to use and distribute this code, | 7 " Permission is hereby granted to use and distribute this code, |
8 " with or without modifications, provided that this copyright | 8 " with or without modifications, provided that this copyright |
9 " notice is copied with it. Like anything else that's free, | 9 " notice is copied with it. Like anything else that's free, |
10 " netrw.vim is provided *as is* and comes with no | 10 " NetrwFileHandlers.vim is provided *as is* and comes with no |
11 " warranty of any kind, either expressed or implied. In no | 11 " warranty of any kind, either expressed or implied. In no |
12 " event will the copyright holder be liable for any damages | 12 " event will the copyright holder be liable for any damages |
13 " resulting from the use of this software. | 13 " resulting from the use of this software. |
14 " | |
15 " Rom 6:23 (WEB) For the wages of sin is death, but the free gift of God {{{1 | |
16 " is eternal life in Christ Jesus our Lord. | |
14 | 17 |
15 " --------------------------------------------------------------------- | 18 " --------------------------------------------------------------------- |
16 " Load Once: {{{1 | 19 " Load Once: {{{1 |
17 if exists("g:loaded_netrwfilehandlers") || &cp | 20 if exists("g:loaded_NetrwFileHandlers") || &cp |
18 finish | 21 finish |
19 endif | 22 endif |
20 let s:keepcpo= &cpo | 23 let s:keepcpo= &cpo |
21 set cpo&vim | 24 set cpo&vim |
22 let g:loaded_netrwfilehandlers= "v5a" | 25 let g:loaded_NetrwFileHandlers= "v6" |
23 | 26 |
24 " --------------------------------------------------------------------- | 27 " --------------------------------------------------------------------- |
25 " NetrwFileHandler_html: handles html when the user hits "x" when the {{{1 | 28 " NetrwFileHandler_html: handles html when the user hits "x" when the {{{1 |
26 " cursor is atop a *.html file | 29 " cursor is atop a *.html file |
27 fun! NetrwFileHandler_html(pagefile) | 30 fun! NetrwFileHandler_html(pagefile) |
172 " " call Dret("NetrwFileHandler_pdf 1") | 175 " " call Dret("NetrwFileHandler_pdf 1") |
173 return 1 | 176 return 1 |
174 endfun | 177 endfun |
175 | 178 |
176 " --------------------------------------------------------------------- | 179 " --------------------------------------------------------------------- |
177 " NetrwFileHandler_sxw: visualize sxw files {{{1 | |
178 fun! NetrwFileHandler_sxw(sxw) | |
179 " " call Dfunc("NetrwFileHandler_sxw(sxw<".a:sxw.">)") | |
180 if executable("gs") | |
181 exe 'silent! !gs "'.a:sxw.'"' | |
182 else | |
183 " " call Dret("NetrwFileHandler_sxw 0") | |
184 return 0 | |
185 endif | |
186 | |
187 " " call Dret("NetrwFileHandler_sxw 1") | |
188 return 1 | |
189 endfun | |
190 | |
191 " --------------------------------------------------------------------- | |
192 " NetrwFileHandler_doc: visualize doc files {{{1 | 180 " NetrwFileHandler_doc: visualize doc files {{{1 |
193 fun! NetrwFileHandler_doc(doc) | 181 fun! NetrwFileHandler_doc(doc) |
194 " " call Dfunc("NetrwFileHandler_doc(doc<".a:doc.">)") | 182 " " call Dfunc("NetrwFileHandler_doc(doc<".a:doc.">)") |
195 | 183 |
196 if executable("oowriter") | 184 if executable("oowriter") |