Browse Source

adding features

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

+ 8
- 2
plugin/makecols.vim View File

@ -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 <silent> mc :<C-U>call <SID>makecols()<CR>
vnoremap <silent> mch :<C-U>call <SID>makecols(["horz", 5])<CR>
vnoremap <silent> mcv :<C-U>call <SID>makecols(["vert", 5])<CR>

Loading…
Cancel
Save