Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex
In directory sc8-pr-cvs1:/tmp/cvs-serv6417
Modified Files:
brackets.vim
Log Message:
. Follow the <Plug>ed mappings philosophy here as well...
. TODO: The meta mappings for brackets.vim might be removed by default in
future revisions because they do really annoying things for european
users. Only the <plugs> will be provided. A new section in texrc will
contain the maps which the user can customize...
Index: brackets.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/brackets.vim,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** brackets.vim 31 Dec 2002 09:36:06 -0000 1.7
--- brackets.vim 31 Dec 2002 19:15:37 -0000 1.8
***************
*** 2,6 ****
" Author: Carl Mueller
" (incorporated into latex-suite by Srinath Avadhanula)
! " Last Change: Sun Dec 29 11:00 PM 2002 PST
" Description:
" This ftplugin provides the following maps:
--- 2,6 ----
" Author: Carl Mueller
" (incorporated into latex-suite by Srinath Avadhanula)
! " Last Change: Tue Dec 31 11:00 AM 2002 PST
" Description:
" This ftplugin provides the following maps:
***************
*** 48,59 ****
" {{{
! if !hasmapto('Tex_MathBF', 'i') && mapcheck('<M-b>', 'i') == ''
! inoremap <buffer> <silent> <M-b> <C-r>=Tex_MathBF()<CR>
endif
! if !hasmapto('Tex_MathCal', 'i') && mapcheck('<M-c>', 'i') == ''
! inoremap <buffer> <silent> <M-c> <C-R>=Tex_MathCal()<CR>
endif
! if !hasmapto('Tex_LeftRight', 'i') && mapcheck('<M-l>', 'i') == ''
! inoremap <buffer> <silent> <M-l> <C-r>=Tex_LeftRight()<CR>
endif
--- 48,69 ----
" {{{
! " Provide <plug>'d mapping for easy user customization.
! "
! inoremap <silent> <Plug>Tex_MathBF <C-r>=Tex_MathBF()<CR>
! inoremap <silent> <Plug>Tex_MathCal <C-r>=Tex_MathCal()<CR>
! inoremap <silent> <Plug>Tex_LeftRight <C-r>=Tex_LeftRight()<CR>
!
! " Provide mappings only if the user hasn't provided a map already or if the
! " target lhs doesn't have a mapping.
! " TODO: These will be removed in future revisions. Alt mappings are a headache
! " for European users...
! if !hasmapto('<Plug>Tex_MathBF', 'i') && mapcheck('<M-b>', 'i') == ''
! imap <buffer> <silent> <M-b> <Plug>Tex_MathBF
endif
! if !hasmapto('<Plug>Tex_MathCal', 'i') && mapcheck('<M-c>', 'i') == ''
! imap <buffer> <silent> <M-c> <Plug>Tex_MathCal
endif
! if !hasmapto('<Plug>Tex_LeftRight', 'i') && mapcheck('<M-l>', 'i') == ''
! imap <buffer> <silent> <M-l> <Plug>Tex_LeftRight
endif
|