From 9931e0888b2419326ae10ebbfae532261c5c125f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 30 Jun 2016 16:11:56 +0200 Subject: Fix submodules --- vim/bundle/tlib_vim | 1 + vim/bundle/tlib_vim/spec/tlib/list.vim | 67 ---------------------------------- 2 files changed, 1 insertion(+), 67 deletions(-) create mode 160000 vim/bundle/tlib_vim delete mode 100755 vim/bundle/tlib_vim/spec/tlib/list.vim (limited to 'vim/bundle/tlib_vim/spec/tlib/list.vim') diff --git a/vim/bundle/tlib_vim b/vim/bundle/tlib_vim new file mode 160000 index 0000000..5636472 --- /dev/null +++ b/vim/bundle/tlib_vim @@ -0,0 +1 @@ +Subproject commit 5636472e5dba1a4104376ce6bd93cc2546e02483 diff --git a/vim/bundle/tlib_vim/spec/tlib/list.vim b/vim/bundle/tlib_vim/spec/tlib/list.vim deleted file mode 100755 index d4aae54..0000000 --- a/vim/bundle/tlib_vim/spec/tlib/list.vim +++ /dev/null @@ -1,67 +0,0 @@ -" @Author: Tom Link (mailto:micathom AT gmail com?subject=[vim]) -" @Website: http://www.vim.org/account/profile.php?user_id=4037 -" @License: GPL (see http://www.gnu.org/licenses/gpl.txt) -" @Created: 2010-04-03. -" @Last Change: 2010-04-03. -" @Revision: 4 - -let s:save_cpo = &cpo -set cpo&vim - - - -SpecBegin 'title': 'tlib: List' - " \, 'options': [vim, <+SET+>] - " \, 'sfile': '<+SCRIPT CONTEXT+>' - " \, 'scratch': '<+SCRATCH FILE+>' - " \, 'before': '<+BEFORE EX COMMANDS+>' - " \, 'after': '<+AFTER EX COMMANDS+>' - " \, 'cleanup': ['<+FUNCTION+>()'] - - -" List {{{2 -fun! Add(a,b) - return a:a + a:b -endf - -Should be equal tlib#list#Inject([], 0, function('Add')), 0 -Should be equal tlib#list#Inject([1,2,3], 0, function('Add')), 6 - -Should be equal tlib#list#Compact([]), [] -Should be equal tlib#list#Compact([0,1,2,3,[], {}, ""]), [1,2,3] - -Should be equal tlib#list#Flatten([]), [] -Should be equal tlib#list#Flatten([1,2,3]), [1,2,3] -Should be equal tlib#list#Flatten([1,2, [1,2,3], 3]), [1,2,1,2,3,3] -Should be equal tlib#list#Flatten([0,[1,2,[3,""]]]), [0,1,2,3,""] - -Should be equal tlib#list#FindAll([1,2,3], 'v:val >= 2'), [2,3] -Should be equal tlib#list#FindAll([1,2,3], 'v:val >= 2', 'v:val * 10'), [20,30] - -Should be equal tlib#list#Find([1,2,3], 'v:val >= 2'), 2 -Should be equal tlib#list#Find([1,2,3], 'v:val >= 2', 0, 'v:val * 10'), 20 -Should be equal tlib#list#Find([1,2,3], 'v:val >= 5', 10), 10 - -Should be equal tlib#list#Any([1,2,3], 'v:val >= 2'), 1 -Should be equal tlib#list#Any([1,2,3], 'v:val >= 5'), 0 - -Should be equal tlib#list#All([1,2,3], 'v:val < 5'), 1 -Should be equal tlib#list#All([1,2,3], 'v:val >= 2'), 0 - -Should be equal tlib#list#Remove([1,2,1,2], 2), [1,1,2] -Should be equal tlib#list#RemoveAll([1,2,1,2], 2), [1,1] - -Should be equal tlib#list#Zip([[1,2,3], [4,5,6]]), [[1,4], [2,5], [3,6]] -Should be equal tlib#list#Zip([[1,2,3], [4,5,6,7]]), [[1,4], [2,5], [3,6], ['', 7]] -Should be equal tlib#list#Zip([[1,2,3], [4,5,6,7]], -1), [[1,4], [2,5], [3,6], [-1,7]] -Should be equal tlib#list#Zip([[1,2,3,7], [4,5,6]], -1), [[1,4], [2,5], [3,6], [7,-1]] - - -Should be equal tlib#list#Uniq([]), [] -Should be equal tlib#list#Uniq([1,1]), [1] -Should be equal tlib#list#Uniq([1,2,2,3,2,3,4,2,1,7,2,3,2,3,7]), [1,2,3,4,7] - - - -let &cpo = s:save_cpo -unlet s:save_cpo -- cgit v1.2.3