From 61813216d8939531dd4c675525b1a6561a428892 Mon Sep 17 00:00:00 2001 From: lolson Date: Fri, 10 Jul 2015 12:46:34 -0500 Subject: [PATCH] testing --- plugin/makecols.vim | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/plugin/makecols.vim b/plugin/makecols.vim index 359e3f4..e50c678 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -21,14 +21,10 @@ function! s:get_visual_selection() for i in lines " start combining - if (i == 0) - let new_string = lines[0] + if (i % no_of_cols) + let new_string = join([new_string, lines[i]], "\t") else - if (i % no_of_cols) - let new_string = join([new_string, lines[i]], "\t") - else - let new_string = join([new_string, lines[i]], "\n") - endif + let new_string = join([new_string, lines[i]], "\n") endif endfor