my dotfiles
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
944 B

  1. " AnsiEscPlugin.vim
  2. " Author: Charles E. Campbell
  3. " Date: Apr 07, 2010
  4. " Version: 13i
  5. " ---------------------------------------------------------------------
  6. " Load Once: {{{1
  7. if &cp || exists("g:loaded_AnsiEscPlugin")
  8. finish
  9. endif
  10. let g:loaded_AnsiEscPlugin = "v13i"
  11. let s:keepcpo = &cpo
  12. set cpo&vim
  13. " ---------------------------------------------------------------------
  14. " Public Interface: {{{1
  15. com! -bang -nargs=0 AnsiEsc :call AnsiEsc#AnsiEsc(<bang>0)
  16. " DrChip Menu Support: {{{2
  17. if !exists('g:no_drchip_menu') && !exists('g:no_ansiesc_menu')
  18. if has("gui_running") && has("menu") && &go =~ 'm'
  19. if !exists("g:DrChipTopLvlMenu")
  20. let g:DrChipTopLvlMenu= "DrChip."
  21. endif
  22. exe 'menu '.g:DrChipTopLvlMenu.'AnsiEsc.Start<tab>:AnsiEsc :AnsiEsc<cr>'
  23. endif
  24. endif
  25. " ---------------------------------------------------------------------
  26. " Restore: {{{1
  27. let &cpo= s:keepcpo
  28. unlet s:keepcpo
  29. " vim: ts=4 fdm=marker