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.

32 lines
368 B

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. " makecols.vim - Makecolumns
  2. " Author: Levi Olson <http://leviolson.com/>
  3. " Version: 1.0
  4. function! s:beep()
  5. exe "norm! \<Esc>"
  6. return ""
  7. endfunction
  8. function! s:makecols()
  9. let lines = getpos("'<")-getpos("'>")
  10. echo lines
  11. return s:beep()
  12. endfunction
  13. vnoremap mc :call <SID>makecols()<CR>
  14. " vim:set ft=vim sw=4 sts=4 et: