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-table-mode | 1 + .../vim-table-mode/autoload/tablemode/utils.vim | 49 ---------------------- 2 files changed, 1 insertion(+), 49 deletions(-) create mode 160000 vim/bundle/vim-table-mode delete mode 100644 vim/bundle/vim-table-mode/autoload/tablemode/utils.vim (limited to 'vim/bundle/vim-table-mode/autoload/tablemode/utils.vim') diff --git a/vim/bundle/vim-table-mode b/vim/bundle/vim-table-mode new file mode 160000 index 0000000..b613e39 --- /dev/null +++ b/vim/bundle/vim-table-mode @@ -0,0 +1 @@ +Subproject commit b613e39bd08ecebdb9b18100dae518050f496048 diff --git a/vim/bundle/vim-table-mode/autoload/tablemode/utils.vim b/vim/bundle/vim-table-mode/autoload/tablemode/utils.vim deleted file mode 100644 index 215da6c..0000000 --- a/vim/bundle/vim-table-mode/autoload/tablemode/utils.vim +++ /dev/null @@ -1,49 +0,0 @@ -" Private Functions {{{1 - -" Public Functions {{{1 -function! tablemode#utils#throw(string) abort "{{{2 - let v:errmsg = 'table-mode: ' . a:string - throw v:errmsg -endfunction - -function! tablemode#utils#line(row) "{{{2 - if type(a:row) == type('') - return line(a:row) - else - return a:row - endif -endfunction - -function! tablemode#utils#strip(string) "{{{2 - return matchstr(a:string, '^\s*\zs.\{-}\ze\s*$') -endfunction - -" function! tablemode#utils#strlen {{{2 -" To count multibyte characters accurately -function! tablemode#utils#strlen(text) - return strlen(substitute(a:text, '.', 'x', 'g')) -endfunction - -function! tablemode#utils#StrDisplayWidth(string) "{{{2 - if exists('*strdisplaywidth') - return strdisplaywidth(a:string) - else - " Implement the tab handling part of strdisplaywidth for vim 7.2 and - " earlier - not much that can be done about handling doublewidth - " characters. - let rv = 0 - let i = 0 - - for char in split(a:string, '\zs') - if char == "\t" - let rv += &ts - i - let i = 0 - else - let rv += 1 - let i = (i + 1) % &ts - endif - endfor - - return rv - endif -endfunction -- cgit v1.2.3