From 4ca7761f371438972dda63ea7d4cfd5492009f12 Mon Sep 17 00:00:00 2001 From: lolson Date: Mon, 13 Jul 2015 15:00:21 -0500 Subject: [PATCH] adding features --- plugin/makecols.vim | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/plugin/makecols.vim b/plugin/makecols.vim index 5160ecf..ca303cb 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -80,18 +80,22 @@ function! s:convert_selection_vert() let rows = float2nr(ceil(rows)) let @z = "" + while c <= rows + echom "Count: " . c + endwhile + " For Loopage Goes here - let a = rows - for i in old_selection - if (c >= rows) - break - endif - let char1 = get(old_selection, c, "") - let char2 = get(old_selection, a, "") - echo join([char1, char2], "\t") - let a += 1 - let c += 1 - endfor + " let a = rows + " for i in old_selection + " if (c >= rows) + " break + " endif + " let char1 = get(old_selection, c, "") + " let char2 = get(old_selection, a, "") + " echo join([char1, char2], "\t") + " let a += 1 + " let c += 1 + " endfor return join([new_string, ""], "\n") endfunction