Mercurial > vim
comparison runtime/plugin/NetrwPlugin.vim @ 532:7052f11a3dc9
updated for version 7.0150
author | vimboss |
---|---|
date | Sun, 25 Sep 2005 22:16:38 +0000 |
parents | d50452846776 |
children |
comparison
equal
deleted
inserted
replaced
531:da9142bd190a | 532:7052f11a3dc9 |
---|---|
1 " netrw.vim: Handles file transfer and remote directory listing across a network | 1 " netrw.vim: Handles file transfer and remote directory listing across a network |
2 " PLUGIN PORTION | 2 " PLUGIN PORTION |
3 " Date: Sep 08, 2005 | 3 " Last Change: Aug 29, 2005 |
4 " Maintainer: Charles E Campbell, Jr <drchipNOSPAM at campbellfamily dot biz> | 4 " Maintainer: Charles E Campbell, Jr <drchipNOSPAM at campbellfamily dot biz> |
5 " Version: 66 | |
5 " License: Vim License (see vim's :help license) | 6 " License: Vim License (see vim's :help license) |
6 " GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim | 7 " GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim |
7 " Copyright: Copyright (C) 1999-2005 Charles E. Campbell, Jr. {{{1 | 8 " Copyright: Copyright (C) 1999-2005 Charles E. Campbell, Jr. {{{1 |
8 " Permission is hereby granted to use and distribute this code, | 9 " Permission is hereby granted to use and distribute this code, |
9 " with or without modifications, provided that this copyright | 10 " with or without modifications, provided that this copyright |
18 " (James 1:22 RSV) | 19 " (James 1:22 RSV) |
19 " =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | 20 " =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
20 | 21 |
21 " --------------------------------------------------------------------- | 22 " --------------------------------------------------------------------- |
22 " Load Once: {{{1 | 23 " Load Once: {{{1 |
24 if exists("g:loaded_netrw") || &cp | |
25 finish | |
26 endif | |
27 if v:version < 600 | |
28 echoerr "***netrw*** doesn't support Vim version ".v:version | |
29 finish | |
30 endif | |
31 let g:loaded_netrw = "v66" | |
32 if v:version < 700 | |
33 let loaded_explorer = 1 | |
34 endif | |
23 let s:keepcpo= &cpo | 35 let s:keepcpo= &cpo |
24 set cpo&vim | 36 set cpo&vim |
25 | 37 |
26 " --------------------------------------------------------------------- | 38 " --------------------------------------------------------------------- |
27 " Public Interface: {{{1 | 39 " Public Interface: {{{1 |
124 " to handle extra junk that their system's ftp dumps | 136 " to handle extra junk that their system's ftp dumps |
125 " into the transfer. This function is provided as an | 137 " into the transfer. This function is provided as an |
126 " example and as a fix for a Windows 95 problem: in my | 138 " example and as a fix for a Windows 95 problem: in my |
127 " experience, win95's ftp always dumped four blank lines | 139 " experience, win95's ftp always dumped four blank lines |
128 " at the end of the transfer. | 140 " at the end of the transfer. |
129 if has("win95") && exists("g:netrw_win95ftp") && g:netrw_win95ftp | 141 if has("win95") && g:netrw_win95ftp |
130 fun! NetReadFixup(method, line1, line2) | 142 fun! NetReadFixup(method, line1, line2) |
131 " call Dfunc("NetReadFixup(method<".a:method."> line1=".a:line1." line2=".a:line2.")") | 143 " call Dfunc("NetReadFixup(method<".a:method."> line1=".a:line1." line2=".a:line2.")") |
132 if method == 3 " ftp (no <.netrc>) | 144 if method == 3 " ftp (no <.netrc>) |
133 let fourblanklines= line2 - 3 | 145 let fourblanklines= line2 - 3 |
134 silent fourblanklines.",".line2."g/^\s*/d" | 146 silent fourblanklines.",".line2."g/^\s*/d" |