From 6d685c298cb8d92cbbbd346a014e19b783588c33 Mon Sep 17 00:00:00 2001 From: lolson Date: Fri, 10 Jul 2015 15:56:32 -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 1299ac5..09272c7 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -33,7 +33,6 @@ function! s:convert_selection(selection) let c = 0 let selection = a:selection let old_selection = split(selection, ",") - let no_of_cols = 6 let new_string = "" let @z = "" @@ -47,7 +46,7 @@ function! s:convert_selection(selection) " If first selected line let new_string = join([new_string, i], "") else - if (c % no_of_cols) + if (c % g:makecols_cols) " If regular column let new_string = join([new_string, i], "\t") else