From 038119fa5aeb7ea864af4f389714ed8b0ad5d5ea Mon Sep 17 00:00:00 2001 From: lolson Date: Thu, 9 Jul 2015 16:48:43 -0500 Subject: [PATCH] testing --- plugin/makecols.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugin/makecols.vim b/plugin/makecols.vim index 7e46543..f5aa107 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -7,7 +7,13 @@ function! s:beep() return "" endfunction -function! s:makecols() range +function! s:makecols(mode) range + if (mode != "V") + echo "You must be in linewise visual mode" + return s:beep() + else + echo "You are in the right mode" + endif echo s:get_visual_selection() return s:beep() endfunction @@ -25,7 +31,7 @@ endfunction -vnoremap mc :call makecols() +vnoremap mc :call makecols(visualmode())