all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ng0 <ng0@infotropique.org>
To: guix-devel@gnu.org
Subject: collisions, vim person opinion wanted
Date: Thu, 24 Aug 2017 07:03:50 +0000	[thread overview]
Message-ID: <20170824070350.dczsj262z2vmzk5o@abyayala> (raw)

[-- Attachment #1: Type: text/plain, Size: 1323 bytes --]

106 packages in profile
user@abyayala ~$ 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2017-08-24  7:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-24  7:03 ng0 [this message]
2017-08-24 15:06 ` collisions, vim person opinion wanted Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170824070350.dczsj262z2vmzk5o@abyayala \
    --to=ng0@infotropique.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.