[Vim-latex-cvs] vimfiles/ftplugin/latex-suite custommacros.vim,1.10,1.11
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2002-12-30 00:23:57
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv7627 Modified Files: custommacros.vim Log Message: . 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. Index: custommacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/custommacros.vim,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** custommacros.vim 27 Dec 2002 01:49:58 -0000 1.10 --- custommacros.vim 30 Dec 2002 00:23:53 -0000 1.11 *************** *** 4,8 **** " Version: 1.0 " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Thu Dec 26 05:00 PM 2002 PST " " Description: functions for processing custom macros in the --- 4,8 ---- " Version: 1.0 " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Sun Dec 29 04:00 PM 2002 PST " " Description: functions for processing custom macros in the *************** *** 39,43 **** " }}} " NewMacro: opens new file in macros directory {{{ ! function! NewMacro() exe "cd ".s:path."/macros" new --- 39,43 ---- " }}} " NewMacro: opens new file in macros directory {{{ ! function! <SID>NewMacro() exe "cd ".s:path."/macros" new *************** *** 130,134 **** " }}} " commands for macros {{{ ! com! -nargs=? TMacro :call <SID>ReadMacro(<f-args>) com! -nargs=0 TMacroNew :call <SID>NewMacro() com! -nargs=? TMacroEdit :call <SID>EditMacro(<f-args>) --- 130,134 ---- " }}} " commands for macros {{{ ! com! -nargs=? TMacro :let s:retVal = <SID>ReadMacro(<f-args>) <bar> normal! i<C-r>=s:retVal<CR> com! -nargs=0 TMacroNew :call <SID>NewMacro() com! -nargs=? TMacroEdit :call <SID>EditMacro(<f-args>) |