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/vim-snipmate | 1 + .../vim-snipmate/autoload/snipmate/legacy.vim | 139 --------------------- 2 files changed, 1 insertion(+), 139 deletions(-) create mode 160000 vim/bundle/vim-snipmate delete mode 100644 vim/bundle/vim-snipmate/autoload/snipmate/legacy.vim (limited to 'vim/bundle/vim-snipmate/autoload/snipmate/legacy.vim') diff --git a/vim/bundle/vim-snipmate b/vim/bundle/vim-snipmate new file mode 160000 index 0000000..ee433e4 --- /dev/null +++ b/vim/bundle/vim-snipmate @@ -0,0 +1 @@ +Subproject commit ee433e43c76c768c95ad6d9af67c4cd4b40f7eac diff --git a/vim/bundle/vim-snipmate/autoload/snipmate/legacy.vim b/vim/bundle/vim-snipmate/autoload/snipmate/legacy.vim deleted file mode 100644 index 7ff39cb..0000000 --- a/vim/bundle/vim-snipmate/autoload/snipmate/legacy.vim +++ /dev/null @@ -1,139 +0,0 @@ -let s:sigil = nr2char(31) -let snipmate#legacy#sigil = s:sigil - -" Prepare snippet to be processed by s:BuildTabStops -function! snipmate#legacy#process_snippet(snip) abort - let snippet = a:snip - let esc_bslash = '\%(\\\@ a:lnum - \ ? len(matchstr(beforeMark, '.*\n\zs.*')) - \ : a:col + len(beforeMark)) - call add(stops[i].mirrors, { 'line' : line, 'col' : col }) - let withoutOthers = substitute(withoutOthers, ''.s:sigil .''.i.'\ze\(\D\|$\)', '', '') - endw - endif - let i += 1 - endw - let stops[i] = stops[0] - return [stops, i + 1] -endfunction - -function! s:substitute_visual(snippet, visual) abort - let lines = [] - for line in split(a:snippet, "\n") - let indent = matchstr(line, '^\t\+') - call add(lines, substitute(line, '{VISUAL}', - \ substitute(escape(a:visual, '%\'), "\n", "\n" . indent, 'g'), 'g')) - endfor - return join(lines, "\n") -endfunction - -" Counts occurences of haystack in needle -function! s:count(haystack, needle) abort - let counter = 0 - let index = stridx(a:haystack, a:needle) - while index != -1 - let index = stridx(a:haystack, a:needle, index+1) - let counter += 1 - endw - return counter -endfunction -- cgit v1.2.3