From 5c870f60d95fe59c32c74e71305c7c08d138550e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 13 May 2013 03:21:52 +0900 Subject: [PATCH] fix non-interactive EasyAlign to take negative field # --- autoload/easy_align.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/easy_align.vim b/autoload/easy_align.vim index e67f4e8..cfe83bf 100644 --- a/autoload/easy_align.vim +++ b/autoload/easy_align.vim @@ -153,7 +153,7 @@ function! easy_align#align(just, ...) range endif endwhile elseif a:0 == 1 - let tokens = matchlist(a:1, '^\([1-9][0-9]*\|\*\)\?\(.\)$') + let tokens = matchlist(a:1, '^\(-\?[1-9][0-9]*\|-\|\*\)\?\(.\)$') if empty(tokens) echo "Invalid arguments: ". a:1 return