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.
 

34 lines
469 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 selection = $selection
let lines = getline("'<")[getpos("'<")[2]-1:getpos("'>")[2]]
return s:beep()
endfunction
if !exists("g:makecols_no_mappings") || ! g:makecols_no_mappings
nmap mc :call makecols()
endif
" vim:set ft=vim sw=4 sts=4 et: