Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv12707
Modified Files:
compiler.vim
Log Message:
- catch the LatexSuiteFileType event to set up buffer local maps.
Index: compiler.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** compiler.vim 12 Jan 2003 22:02:37 -0000 1.19
--- compiler.vim 17 Jan 2003 09:20:00 -0000 1.20
***************
*** 406,409 ****
--- 406,434 ----
endfunction " }}}
+ " SetCompilerMaps: sets maps for compiling/viewing/searching {{{
+ " " Description:
+ function! <SID>SetCompilerMaps()
+ if exists('b:Tex_doneCompilerMaps')
+ return
+ endif
+ let b:Tex_doneCompilerMaps = 1
+ " viewing/searching
+ if !hasmapto('RunLaTeX')
+ if has("gui")
+ nnoremap <buffer> <Leader>ll :silent! call RunLaTeX()<cr>
+ nnoremap <buffer> <Leader>lv :silent! call ViewLaTeX()<cr>
+ nnoremap <buffer> <Leader>ls :silent! call ForwardSearchLaTeX()<cr>
+ else
+ nnoremap <buffer> <Leader>ll :call RunLaTeX()<cr>
+ nnoremap <buffer> <Leader>lv :call ViewLaTeX()<cr>
+ nnoremap <buffer> <Leader>ls :call ForwardSearchLaTeX()<cr>
+ end
+ end
+ endfunction
+ " }}}
+
+ augroup LatexSuite
+ au LatexSuite User LatexSuiteFileType call <SID>SetCompilerMaps()
+ augroup END
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
|