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])