makecols.vim: converting lists to columns made simple
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

33 lines
410 B

" makecols.vim - Makecolumns
" Author: Levi Olson <http://leviolson.com/>
" Version: 1.0
function! s:beep()
exe "norm! \<Esc>"
return ""
endfunction
function! s:makecols()
let lines = getline("'<")[getpos("'<")[2]-1:getpos("'>")[2]]
echo lines
let lines = ""
return s:beep()
endfunction
vnoremap mc :call <SID>makecols()<CR>
" vim:set ft=vim sw=4 sts=4 et: