From fd2001cd614dfa0d55ec820b7c358a1795d3ea27 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 14 Dec 2021 11:42:41 -0500 Subject: Simplify vim configuration --- dot_vim/ftplugin/latex-suite/texproject.vim | 54 ----------------------------- 1 file changed, 54 deletions(-) delete mode 100644 dot_vim/ftplugin/latex-suite/texproject.vim (limited to 'dot_vim/ftplugin/latex-suite/texproject.vim') diff --git a/dot_vim/ftplugin/latex-suite/texproject.vim b/dot_vim/ftplugin/latex-suite/texproject.vim deleted file mode 100644 index bed9ed3..0000000 --- a/dot_vim/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 = expand(":p:h") - -command! -nargs=0 TProjectEdit :call 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 '.Tex_EscapeSpaces(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 curd = getcwd() - call Tex_CD(expand('%:p:h')) - - if glob(Tex_GetMainFileName(':p').'.latexmain') != '' - call Tex_Debug("Tex_ProjectLoad: sourcing [".Tex_GetMainFileName().".latexmain]", "proj") - exec 'source '.Tex_GetMainFileName().'.latexmain' - endif - - call Tex_CD(curd) -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 -- cgit v1.2.3