diff --git a/ftplugin/latex-suite/main.vim b/ftplugin/latex-suite/main.vim index f5d18aa..7eb6617 100755 --- a/ftplugin/latex-suite/main.vim +++ b/ftplugin/latex-suite/main.vim @@ -3,7 +3,7 @@ " Maintainer: Srinath Avadhanula " Email: srinath@fastmail.fm " URL: -" Last Change: Fri Jan 03 04:00 PM 2003 PST +" Last Change: Sun Jan 05 12:00 AM 2003 PST " " Help: " Changes: {{{ @@ -450,7 +450,7 @@ function! Tex_PrintDebug(...) let pattern = '' endif if exists('s:debugString_'.pattern) - echo s:debugString_{a:pattern} + echo s:debugString_{pattern} endif endfunction " }}} " Tex_ClearDebug: clears the s:debugString string {{{ @@ -509,6 +509,11 @@ function! SetTeXOptions() if g:Tex_SmartKeyDot inoremap . =SmartDots() endif + call Tex_Debug('checking to see if Tex_SetFastEnvironmentMaps needs to be called.', 'main') + if g:Tex_PromptedEnvironments != '' || g:Tex_HotKeyMappings != '' + call Tex_Debug('calling Tex_SetFastEnvironmentMaps', 'main') + call Tex_SetFastEnvironmentMaps() + endif " viewing/searching if !hasmapto('RunLaTeX')