Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update ftplugin/perl/perlomni.vim

zcat is not always equivalent to gzcat; fixes #16
  • Loading branch information...
commit 2c211edb9f09f6284a23a33aa0936fe29a75e53b 1 parent c4675e3
@y y authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 ftplugin/perl/perlomni.vim
View
8 ftplugin/perl/perlomni.vim
@@ -671,12 +671,8 @@ fun! CPANParseSourceList(file)
let g:cpan_mod_cachef = expand('~/.vim-cpan-module-cache')
endif
if !filereadable(g:cpan_mod_cachef) || getftime(g:cpan_mod_cachef) < getftime(a:file)
- let args = []
- if executable('zcat')
- let args = ['zcat', a:file, '|' , 'grep', '-Ev', '^[A-Za-z0-9-]+: ', '|', 'cut', '-d" "', '-f1']
- else
- let args = ['cat', a:file, '|', 'gunzip', '|', 'grep', '-Ev', '^[A-Za-z0-9-]+: ', '|', 'cut', '-d" "', '-f1']
- endif
+ let args = ['cat', a:file, '|', 'gzip', '-dc', '|',
+ \ 'grep', '-Ev', '^[A-Za-z0-9-]+: ', '|', 'cut', '-d" "', '-f1']
let data = call(function("s:system"), args)
cal writefile(split(data, "\n"), g:cpan_mod_cachef)
endif
Please sign in to comment.
Something went wrong with that request. Please try again.