dotvim/.vim/bundle/gundo/tests/bundled/lh-vim-lib/tests/lh/test-menu-map.vim
2015-09-23 13:33:15 +02:00

55 lines
1.9 KiB
VimL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"=============================================================================
" $Id: test-menu-map.vim 246 2010-09-19 22:40:58Z luc.hermitte $
" File: tests/lh/test-menu-map.vim {{{1
" Author: Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
" <URL:http://code.google.com/p/lh-vim/>
" Version: 2.2.1
" Created: 05th Dec 2006
" Last Update: $Date: 2010-09-19 18:40:58 -0400 (Sun, 19 Sep 2010) $
"------------------------------------------------------------------------
" Description: Tests for lh-vim-lib . lh#menu#
"
"------------------------------------------------------------------------
" Installation: «install details»
" History: «history»
" TODO: «missing features»
" }}}1
"=============================================================================
" let g:want_buffermenu_or_global_disable = 1
" let b:want_buffermenu_or_global_disable = 1
" echo lh#option#get("want_buffermenu_or_global_disable", 1, "bg")
" Call a command (':Command')
call lh#menu#make("nic", '42.50.340',
\ '&LH-Tests.&Menu-Make.Build Ta&gs', "<C-L>g",
\ '<buffer>',
\ ":echo 'TeXtags'<CR>")
" With '{' expanding to '{}××', or '{}' regarding the mode
call lh#menu#IVN_make('42.50.360.200',
\ '&LH-Tests.&Menu-Make.&Insert.\toto{}', ']toto',
\ '\\toto{',
\ '{%i\\toto<ESC>%l',
\ "viw]toto")
" Noremap for the visual maps
call lh#menu#IVN_make('42.50.360.200',
\ '&LH-Tests.&Menu-Make.&Insert.\titi{}', ']titi',
\ '\\titi{',
\ '<ESC>`>a}<ESC>`<i\\titi{<ESC>%l',
\ "viw]titi",
\ 0, 1, 0)
" Noremap for the insert and visual maps
call lh#menu#IVN_make('42.50.360.200',
\ '&LH-Tests.&Menu-Make.&Insert.<tata></tata>', ']tata',
\ '<tata></tata><esc>?<<CR>i',
\ '<ESC>`>a</tata><ESC>`<i<tata><ESC>/<\\/tata>/e1<CR>',
\ "viw]tata",
\ 1, 1, 0)
"=============================================================================
" vim600: set fdm=marker: