Skip to content

Commit

Permalink
Expose if there's a last used pattern
Browse files Browse the repository at this point in the history
Define a function to check if Tabularize has been called yet,
meaning that executing `:Tabularize` will reuse the last pattern.
  • Loading branch information
somini committed Aug 8, 2015
1 parent 60f2564 commit 74d0e62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/Tabular.vim
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ function! Tabularize(command, ...) range
endtry
endfunction

function! TabularizeHasPattern()
return exists("s:last_tabularize_command")
endfunction

" GTabularize /pattern[/format] {{{2
" GTabularize name
"
Expand Down

0 comments on commit 74d0e62

Please sign in to comment.