Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex
In directory sc8-pr-cvs1:/tmp/cvs-serv18828
Modified Files:
brackets.vim
Log Message:
. The solution in rev 1.2 was incomplete. Instead of using
hasmapto('Tex_MathBF') to see whether map exists, use
hasmapto('Tex_MathBF', 'i'). This is because hasmapto() uses 'nvo' as
default for mode if unspecified.
Also, the way the maps are supposed to be disabled/changed:
" In order to completeley disable mappings of <M-b>, <M-c> and <M-l>
inoremap <buffer> <plug>foo1 Tex_MathBF
inoremap <buffer> <plug>foo2 Tex_MathCal
inoremap <buffer> <plug>foo3 Tex_LeftRight
" In order to map the functionality of Tex_MathBF, Tex_MathCal and
" Tex_LeftRight into some other keys
inoremap <buffer> <silent> <C-c>b <C-r>=Tex_MathBF()<CR>
inoremap <buffer> <silent> <C-c>c <C-r>=Tex_MathCal()<CR>
inoremap <buffer> <silent> <C-c>l <C-r>=Tex_LeftRight()<CR>
Index: brackets.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/brackets.vim,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** brackets.vim 7 Dec 2002 02:19:06 -0000 1.3
--- brackets.vim 9 Dec 2002 20:41:56 -0000 1.4
***************
*** 2,6 ****
" Author: Carl Mueller
" (incorporated into latex-suite by Srinath Avadhanula)
! " Last Change: Fri Dec 06 06:00 PM 2002 PST
" Desciption:
" This ftplugin provides the following maps:
--- 2,6 ----
" Author: Carl Mueller
" (incorporated into latex-suite by Srinath Avadhanula)
! " Last Change: Mon Dec 09 12:00 PM 2002 PST
" Desciption:
" This ftplugin provides the following maps:
***************
*** 48,58 ****
" {{{
! if !hasmapto('Tex_MathBF')
inoremap <buffer> <silent> <M-b> <C-r>=Tex_MathBF()<CR>
endif
! if !hasmapto('Tex_MathCal') && mapcheck('<M-c>') == ''
inoremap <buffer> <silent> <M-c> <C-R>=Tex_MathCal()<CR>
endif
! if !hasmapto('Tex_LeftRight')
inoremap <buffer> <silent> <M-l> <C-r>=Tex_LeftRight()<CR>
endif
--- 48,58 ----
" {{{
! 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
|