diff --git a/plugin/makecols.vim b/plugin/makecols.vim index d6f1a50..d6d65c2 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -7,7 +7,9 @@ function! s:beep() return "" endfunction -function! s:makecols(no_of_cols) +function! s:makecols() + let selection = $selection + let lines = getline("'<")[getpos("'<")[2]-1:getpos("'>")[2]] return s:beep() endfunction @@ -15,11 +17,8 @@ endfunction -nnoremap MakeCols :call makecols(4) - - if !exists("g:makecols_no_mappings") || ! g:makecols_no_mappings - nmap mc MakeCols + nmap mc :call makecols() endif