From 5d5885fa941a93eca5c34e5b2d3957a5c7843bce Mon Sep 17 00:00:00 2001 From: lolson Date: Mon, 13 Jul 2015 16:02:31 -0500 Subject: [PATCH] adding features --- plugin/makecols.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/makecols.vim b/plugin/makecols.vim index 4634054..b8fdfa1 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -97,7 +97,7 @@ function! s:convert_selection_vert() let pos = row while col < cols let col += 1 - let pos = pos + rows + let pos = row + rows echom "ROW: " . row . " COL: " . col . " POS: " . pos let content = get(old_selection, pos, "blank") if (col == 0) @@ -105,7 +105,6 @@ function! s:convert_selection_vert() else let new_string = join([new_string, content], "\t") endif - let pos += 1 endwhile let new_string = join([new_string,""], "\n") let row += 1