From 32c9e9b8978a52d0960def70972ccbbdc2effdfe Mon Sep 17 00:00:00 2001 From: Srinath Avadhanula Date: Mon, 30 Dec 2002 00:23:53 +0000 Subject: [PATCH] . repairing the TMacro command. NOTE: There is still a bug in that the user is not left in insert mode... This seems to be a vim bug (?) . made the NewMacro() function script local, as demanded by the TMacroNew command. --- ftplugin/latex-suite/custommacros.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ftplugin/latex-suite/custommacros.vim b/ftplugin/latex-suite/custommacros.vim index cbe48ae..710e06c 100755 --- a/ftplugin/latex-suite/custommacros.vim +++ b/ftplugin/latex-suite/custommacros.vim @@ -3,7 +3,7 @@ " Author: Mikolaj Machowski " Version: 1.0 " Created: Tue Apr 23 05:00 PM 2002 PST -" Last Change: Thu Dec 26 05:00 PM 2002 PST +" Last Change: Sun Dec 29 04:00 PM 2002 PST " " Description: functions for processing custom macros in the " latex-suite/macros directory @@ -38,7 +38,7 @@ endif " }}} " NewMacro: opens new file in macros directory {{{ -function! NewMacro() +function! NewMacro() exe "cd ".s:path."/macros" new set filetype=tex @@ -129,7 +129,7 @@ endfunction " }}} " commands for macros {{{ -com! -nargs=? TMacro :call ReadMacro() +com! -nargs=? TMacro :let s:retVal = ReadMacro() normal! i=s:retVal com! -nargs=0 TMacroNew :call NewMacro() com! -nargs=? TMacroEdit :call EditMacro() com! -nargs=? TMacroDelete :call DeleteMacro()