Merge branch 'master' of github.com:dhruvasagar/vim-table-mode into feature/table-formulas

Conflicts:
	autoload/tablemode.vim
This commit is contained in:
Dhruva Sagar
2013-05-16 15:50:56 +05:30
2 changed files with 12 additions and 5 deletions

View File

@@ -20,10 +20,10 @@
" ============================================================================= " =============================================================================
" Finish if already loaded {{{1 " Finish if already loaded {{{1
if exists('g:table_mode_loaded') if exists('g:loaded_table_mode')
finish finish
endif endif
let g:table_mode_loaded = 1 let g:loaded_table_mode = 1
"}}}1 "}}}1
" "
" Finish if Tabularize plugin is not available {{{1 " Finish if Tabularize plugin is not available {{{1
@@ -152,4 +152,4 @@ let &cpo = s:save_cpo
" }}}1 " }}}1
" ModeLine {{{ " ModeLine {{{
" vim:fdl=0 fdm=marker " vim: sw=2 sts=2 fdl=0 fdm=marker

View File

@@ -20,6 +20,12 @@
" Private Functions {{{1 " Private Functions {{{1
if exists('g:autoloaded_table_mode') "{{{2
finish
endif
let g:autoloaded_table_mode = 1
" }}}2
" Utility Functions {{{2 " Utility Functions {{{2
function! s:throw(string) abort "{{{3 function! s:throw(string) abort "{{{3
@@ -525,7 +531,7 @@ function! s:Align(lines) "{{{3
for line in lines for line in lines
if len(line) <= 1 | continue | endif if len(line) <= 1 | continue | endif
if line[0] !~ '^\s*$' if line[0] !~ s:StartExpr()
let line[0] = s:StripTrailingSpaces(line[0]) let line[0] = s:StripTrailingSpaces(line[0])
endif endif
if len(line) >= 2 if len(line) >= 2
@@ -659,7 +665,6 @@ function! tablemode#TableRealign(line) "{{{2
let tline = tline + s:RowGap() let tline = tline + s:RowGap()
endwhile endwhile
" call tabular#TabularizeStrings(lines, g:table_mode_separator, g:table_mode_align)
let lines = s:Align(lines) let lines = s:Align(lines)
for lnum in lnums for lnum in lnums
@@ -864,3 +869,5 @@ endfunction
" }}}2 " }}}2
" }}}1 " }}}1
" vim: sw=2 sts=2 fdl=0 fdm=marker