From b50f0804d36ac9d4e12b23f55f5d99c34787a068 Mon Sep 17 00:00:00 2001 From: lolson Date: Fri, 10 Jul 2015 15:15:30 -0500 Subject: [PATCH] adding features --- plugin/makecols.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugin/makecols.vim b/plugin/makecols.vim index 29ed6ea..5fa1f53 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -62,7 +62,12 @@ endfunction -function! s:makecols() range +function! s:makecols(options) range + let options = a:options + let orientation = options[0] + echom "Orientation: " . orientation + let cols = options[1] + echom "Number of Columns: " . cols let mode = visualmode() if (mode !=# "V") echo "You must be in linewise visual mode" @@ -77,7 +82,8 @@ function! s:makecols() range endfunction -vnoremap mc :call makecols() +vnoremap mch :call makecols(["horz", 5]) +vnoremap mcv :call makecols(["vert", 5])