guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

collisions, vim person opinion wanted


From: ng0
Subject: collisions, vim person opinion wanted
Date: Thu, 24 Aug 2017 07:03:50 +0000

106 packages in profile
address@hidden ~$ diff 
/gnu/store/fsskp9hp6mdw5lymd3bl886ixagf7bqc-vim-neosnippet-4.2-1.1bd7e23/share/vim/vimfiles/autoload/vital.vim
 
/gnu/store/36hqzfgzqss4ly8i7hkavlcfr327g4l5-vim-neocomplete-2.1/share/vim/vimfiles/autoload/vital.vim
2c2
<   let files = globpath(&runtimepath, 'autoload/vital/' . a:name . '.vital', 1)
---
>   let files = globpath(&runtimepath, 'autoload/vital/' . a:name . '.vital')


So what does it mean in vimscript when there's just 3 more characters?
Anyone with some knowledge in vimscript or at least vim internals
got an idea?

The whole thing is inserted below.

cat 
/gnu/store/fsskp9hp6mdw5lymd3bl886ixagf7bqc-vim-neosnippet-4.2-1.1bd7e23/share/vim/vimfiles/autoload/vital.vim

function! vital#of(name) abort
  let files = globpath(&runtimepath, 'autoload/vital/' . a:name . '.vital', 1)
  let file = split(files, "\n")
  if empty(file)
    throw 'vital: version file not found: ' . a:name
  endif
  let ver = readfile(file[0], 'b')
  if empty(ver)
    throw 'vital: invalid version file: ' . a:name
  endif
  return vital#_{substitute(ver[0], '\W', '', 'g')}#new()
endfunction
             
-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]