My dotfiles. Period.

test-menu-map.vim 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. "=============================================================================
  2. " $Id: test-menu-map.vim 520 2012-03-19 18:09:15Z luc.hermitte $
  3. " File: tests/lh/test-menu-map.vim {{{1
  4. " Author: Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
  5. " <URL:http://code.google.com/p/lh-vim/>
  6. " License: GPLv3 with exceptions
  7. " <URL:http://code.google.com/p/lh-vim/wiki/License>
  8. " Version: 3.0.0
  9. " Created: 05th Dec 2006
  10. " Last Update: $Date: 2012-03-19 19:09:15 +0100 (Mon, 19 Mar 2012) $
  11. "------------------------------------------------------------------------
  12. " Description: Tests for lh-vim-lib . lh#menu#
  13. "
  14. "------------------------------------------------------------------------
  15. " Installation: «install details»
  16. " History: «history»
  17. " TODO: «missing features»
  18. " }}}1
  19. "=============================================================================
  20. " let g:want_buffermenu_or_global_disable = 1
  21. " let b:want_buffermenu_or_global_disable = 1
  22. " echo lh#option#get("want_buffermenu_or_global_disable", 1, "bg")
  23. " Call a command (':Command')
  24. call lh#menu#make("nic", '42.50.340',
  25. \ '&LH-Tests.&Menu-Make.Build Ta&gs', "<C-L>g",
  26. \ '<buffer>',
  27. \ ":echo 'TeXtags'<CR>")
  28. " With '{' expanding to '{}××', or '{}' regarding the mode
  29. call lh#menu#IVN_make('42.50.360.200',
  30. \ '&LH-Tests.&Menu-Make.&Insert.\toto{}', ']toto',
  31. \ '\\toto{',
  32. \ '{%i\\toto<ESC>%l',
  33. \ "viw]toto")
  34. " Noremap for the visual maps
  35. call lh#menu#IVN_make('42.50.360.200',
  36. \ '&LH-Tests.&Menu-Make.&Insert.\titi{}', ']titi',
  37. \ '\\titi{',
  38. \ '<ESC>`>a}<ESC>`<i\\titi{<ESC>%l',
  39. \ "viw]titi",
  40. \ 0, 1, 0)
  41. " Noremap for the insert and visual maps
  42. call lh#menu#IVN_make('42.50.360.200',
  43. \ '&LH-Tests.&Menu-Make.&Insert.<tata></tata>', ']tata',
  44. \ '<tata></tata><esc>?<<CR>i',
  45. \ '<ESC>`>a</tata><ESC>`<i<tata><ESC>/<\\/tata>/e1<CR>',
  46. \ "viw]tata",
  47. \ 1, 1, 0)
  48. "=============================================================================
  49. " vim600: set fdm=marker: