From 1ac425e2efbda696521dd018ef146095ec0fbb0a Mon Sep 17 00:00:00 2001 From: lolson Date: Fri, 10 Jul 2015 12:55:00 -0500 Subject: [PATCH] testing --- plugin/makecols.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/makecols.vim b/plugin/makecols.vim index 359e3f4..bd785b7 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -19,10 +19,11 @@ function! s:get_visual_selection() let new_string = "" + let c = 0 for i in lines " start combining - if (i == 0) - let new_string = lines[0] + if (c == 0) + let new_string = lines[i] else if (i % no_of_cols) let new_string = join([new_string, lines[i]], "\t") @@ -30,6 +31,7 @@ function! s:get_visual_selection() let new_string = join([new_string, lines[i]], "\n") endif endif + let c += 1 endfor let @a = new_string