diff --git a/plugin/makecols.vim b/plugin/makecols.vim index 90354e7..4484b86 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -73,22 +73,18 @@ function! s:convert_selection_vert() " Setup some variables let c = 0 let new_string = "" - let list = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] - let cols = g:makecols_cols let selection = s:get_visual_selection() let old_selection = split(selection, ",") let lines = len(old_selection) * 1.0 let rows = (lines / g:makecols_cols) * 1.0 let rows = float2nr(ceil(rows)) - let cols = list[cols:] - echom string(cols) let @z = "" " For Loopage Goes here let a = rows for i in old_selection - " echom old_selection[c] - " echom old_selection[a] + get(old_selection, c, "") + get(old_selection, a, "") let a += 1 let c += 1 endfor