Browse Source

testing

master
lolson 9 years ago
parent
commit
038119fa5a
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      plugin/makecols.vim

+ 8
- 2
plugin/makecols.vim View File

@ -7,7 +7,13 @@ function! s:beep()
return "" return ""
endfunction 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() echo s:get_visual_selection()
return s:beep() return s:beep()
endfunction endfunction
@ -25,7 +31,7 @@ endfunction
vnoremap <silent> mc :<C-U>call <SID>makecols()<CR>
vnoremap <silent> mc :<C-U>call <SID>makecols(visualmode())<CR>

Loading…
Cancel
Save