From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: collisions, vim person opinion wanted Date: Thu, 24 Aug 2017 17:06:48 +0200 Message-ID: <87h8wxqa2f.fsf@elephly.net> References: <20170824070350.dczsj262z2vmzk5o@abyayala> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dktis-0005V7-Lv for guix-devel@gnu.org; Thu, 24 Aug 2017 11:07:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dktip-0004Xy-Hk for guix-devel@gnu.org; Thu, 24 Aug 2017 11:07:06 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21043) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dktip-0004Xd-9Q for guix-devel@gnu.org; Thu, 24 Aug 2017 11:07:03 -0400 In-reply-to: <20170824070350.dczsj262z2vmzk5o@abyayala> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: ng0 Cc: guix-devel@gnu.org ng0 writes: > 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? Here’s what I did to read the documentation: --8<---------------cut here---------------start------------->8--- guix environment --ad-hoc vim vim :help globpath --8<---------------cut here---------------end--------------->8--- This is part of the output: --8<---------------cut here---------------start------------->8--- globpath({path}, {expr} [, {nosuf} [, {list} [, {alllinks}]]]) Perform glob() on all directories in {path} and concatenate the results. Example: > :echo globpath(&rtp, "syntax/c.vim") < {path} is a comma-separated list of directory names. Each directory name is prepended to {expr} and expanded like with |glob()|. A path separator is inserted when needed. To add a comma inside a directory name escape it with a backslash. Note that on MS-Windows a directory may have a trailing backslash, remove it if you put a comma after it. If the expansion fails for one of the directories, there is no error message. Unless the optional {nosuf} argument is given and is |TRUE|, the 'suffixes' and 'wildignore' options apply: Names matching one of the patterns in 'wildignore' will be skipped and 'suffixes' affect the ordering of matches. --8<---------------cut here---------------end--------------->8--- The last paragraph says what the difference in this case is. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net