summaryrefslogtreecommitdiff
path: root/src/vim-latex/ftplugin/latex-suite/texproject.vim
diff options
context:
space:
mode:
authorDavid Kaufmann <astra@fsinf.at>2011-11-15 16:48:21 +0100
committerDavid Kaufmann <astra@fsinf.at>2011-11-15 16:48:21 +0100
commit5cffdb1f6922496d1bb3b3aae4152df64e0bc87f (patch)
tree7df4ee4d1a8209ed01d5aa4a1ab8d6fbba902893 /src/vim-latex/ftplugin/latex-suite/texproject.vim
parent890bcf73e280fcf2d518ea6396de9afc0141e1df (diff)
downloadconfig-5cffdb1f6922496d1bb3b3aae4152df64e0bc87f.tar.gz
submodule stuff
Diffstat (limited to 'src/vim-latex/ftplugin/latex-suite/texproject.vim')
-rw-r--r--src/vim-latex/ftplugin/latex-suite/texproject.vim54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/vim-latex/ftplugin/latex-suite/texproject.vim b/src/vim-latex/ftplugin/latex-suite/texproject.vim
deleted file mode 100644
index fd1734b..0000000
--- a/src/vim-latex/ftplugin/latex-suite/texproject.vim
+++ /dev/null
@@ -1,54 +0,0 @@
-"=============================================================================
-" File: texproject.vim
-" Author: Mikolaj Machowski
-" Version: 1.0
-" Created: Wen Apr 16 05:00 PM 2003
-"
-" Description: Handling tex projects.
-"=============================================================================
-
-let s:path = fnameescape(expand("<sfile>:p:h"))
-
-command! -nargs=0 TProjectEdit :call <SID>Tex_ProjectEdit()
-
-" Tex_ProjectEdit: Edit project file " {{{
-" Description: If project file exists (*.latexmain) open it in window created
-" with ':split', if no create ':new' window and read there
-" project template
-"
-function! s:Tex_ProjectEdit()
-
- let file = expand("%:p")
- let mainfname = Tex_GetMainFileName()
- if glob(mainfname.'.latexmain') != ''
- exec 'split '.fnameescape(mainfname.'.latexmain')
- else
- echohl WarningMsg
- echomsg "Master file not found."
- echomsg " :help latex-master-file"
- echomsg "for more information"
- echohl None
- endif
-
-endfunction " }}}
-" Tex_ProjectLoad: loads the .latexmain file {{{
-" Description: If a *.latexmain file exists, then sources it
-function! Tex_ProjectLoad()
- let s:origdir = fnameescape(getcwd())
- exe 'cd '.fnameescape(expand('%:p:h'))
-
- if glob(Tex_GetMainFileName(':p').'.latexmain') != ''
- call Tex_Debug("Tex_ProjectLoad: sourcing [".Tex_GetMainFileName().".latexmain]", "proj")
- exec 'source '.fnameescape(Tex_GetMainFileName().'.latexmain')
- endif
-
- exe 'cd '.s:origdir
-endfunction " }}}
-
-augroup LatexSuite
- au LatexSuite User LatexSuiteFileType
- \ call Tex_Debug("texproject.vim: catching LatexSuiteFileType event", "proj") |
- \ call Tex_ProjectLoad()
-augroup END
-
-" vim:fdm=marker:ff=unix:noet:ts=4:sw=4