From 14d64785aaac4bb792f31c2fafb7332b74612c9f Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Mon, 14 Nov 2011 00:13:19 +0100 Subject: init copy --- vim-latex/ftplugin/latex-suite/main.vim | 1041 +++++++++++++++++++++++++++++++ 1 file changed, 1041 insertions(+) create mode 100644 vim-latex/ftplugin/latex-suite/main.vim (limited to 'vim-latex/ftplugin/latex-suite/main.vim') diff --git a/vim-latex/ftplugin/latex-suite/main.vim b/vim-latex/ftplugin/latex-suite/main.vim new file mode 100644 index 0000000..65588c9 --- /dev/null +++ b/vim-latex/ftplugin/latex-suite/main.vim @@ -0,0 +1,1041 @@ +" LaTeX filetype +" Language: LaTeX (ft=tex) +" Maintainer: Srinath Avadhanula +" URL: + +" line continuation used here. +let s:save_cpo = &cpo +set cpo&vim + +" avoiding re-inclusion {{{ +" the avoiding re-inclusion statement is not provided here because the files +" which call this file should in the normal course of events handle the +" re-inclusion stuff. + +" we definitely dont want to run through the entire file each and every time. +" only once to define the functions. for successive latex files, just set up +" the folding and mappings and quit. +if exists('s:doneFunctionDefinitions') && !exists('b:forceRedoLocalTex') + call s:SetTeXOptions() + finish +endif + +let s:doneFunctionDefinitions = 1 + +" get the place where this plugin resides for setting cpt and dict options. +" these lines need to be outside the function. +let s:path = expand(':p:h') +" set up personal defaults. +runtime ftplugin/tex/texrc +" set up global defaults. +exe "so ".fnameescape(s:path.'/texrc') + +" }}} + +nmap