From 367d38b38b0f7bf6f9938aa07ef693d621c72296 Mon Sep 17 00:00:00 2001 From: randomizedthinking Date: Thu, 22 Jun 2017 14:19:26 -0700 Subject: [PATCH] Add spaces Pipeline It is useful to align space separated fields. --- after/plugin/TabularMaps.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/after/plugin/TabularMaps.vim b/after/plugin/TabularMaps.vim index 998346f..ca0216c 100644 --- a/after/plugin/TabularMaps.vim +++ b/after/plugin/TabularMaps.vim @@ -34,6 +34,7 @@ AddTabularPattern! assignment /[|&+*/%<>=!~-]\@!=]=\|=\~\)\@![|&+*/ AddTabularPattern! two_spaces / /l0 AddTabularPipeline! multiple_spaces / / map(a:lines, "substitute(v:val, ' *', ' ', 'g')") | tabular#TabularizeStrings(a:lines, ' ', 'l0') +AddTabularPipeline! spaces / / map(a:lines, "substitute(v:val, ' *' , ' ' , 'g')") | tabular#TabularizeStrings(a:lines, ' ' , 'l0') AddTabularPipeline! argument_list /(.*)/ map(a:lines, 'substitute(v:val, ''\s*\([(,)]\)\s*'', ''\1'', ''g'')') \ | tabular#TabularizeStrings(a:lines, '[(,)]', 'l0')