From 7fb2f5aacc8ed8304c68792e4ac27415b188d813 Mon Sep 17 00:00:00 2001 From: lolson Date: Fri, 10 Jul 2015 15:39:17 -0500 Subject: [PATCH] adding features --- plugin/makecols.vim | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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")