diff --git a/plugin/makecols.vim b/plugin/makecols.vim index 3c53160..fcf794b 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -63,13 +63,11 @@ endfunction function! s:makecols(orient) range - if exists(a:orient) - let g:makecols_orientation = a:orient - endif - echom "Orientation: " . g:makecols_orientation + let g:makecols_orientation = a:orient if exists(v:count) let g:makecols_cols = v:count endif + echom "Orientation: " . g:makecols_orientation echom "Number of Columns: " . g:makecols_cols let mode = visualmode() if (mode !=# "V") @@ -85,7 +83,7 @@ function! s:makecols(orient) range endfunction -vnoremap mc :call makecols() +vnoremap mc :call makecols(g:makecols_orientation) vnoremap mch :call makecols("horz") vnoremap mcv :call makecols("vert")