[Vim-latex-cvs] vimfiles/ftplugin/latex-suite custommacros.vim,1.12,1.13
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-01-17 06:41:28
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv32346 Modified Files: custommacros.vim Log Message: - Use Tex_ChooseFromPrompt instead of Tex_ChooseFile Index: custommacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/custommacros.vim,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** custommacros.vim 12 Jan 2003 22:02:38 -0000 1.12 --- custommacros.vim 17 Jan 2003 06:37:58 -0000 1.13 *************** *** 52,55 **** --- 52,67 ---- " }}} + " ChooseMacro: choose a macro file {{{ + " " Description: + function! s:ChooseMacro(ask) + let pwd = getcwd() + exe 'cd '.s:path.'/macros' + let filename = Tex_ChooseFromPrompt( + \ a:ask."\n" . + \ Tex_CreatePrompt(glob('*'), 2, "\n") . + \ "\nEnter number or filename :", + \ glob('*'), "\n") + exe 'cd '.pwd + endfunction " }}} " DeleteMacro: deletes macro file {{{ function! <SID>DeleteMacro(...) *************** *** 59,63 **** let pwd = getcwd() exe 'cd '.s:path.'/macros' ! let filename = Tex_ChooseFile('Choose a macro file for deletion :') exe 'cd '.pwd endif --- 71,75 ---- let pwd = getcwd() exe 'cd '.s:path.'/macros' ! let filename = s:ChooseMacro('Choose a macro file for deletion :') exe 'cd '.pwd endif *************** *** 79,83 **** let pwd = getcwd() exe 'cd '.s:path.'/macros' ! let filename = Tex_ChooseFile('Choose a macro file for insertion:') exe 'cd '.pwd endif --- 91,95 ---- let pwd = getcwd() exe 'cd '.s:path.'/macros' ! let filename = s:ChooseMacro('Choose a macro file for insertion:') exe 'cd '.pwd endif *************** *** 98,102 **** let pwd = getcwd() exe 'cd '.s:path.'/macros' ! let filename = Tex_ChooseFile('Choose a macro file for insertion:') exe 'cd '.pwd endif --- 110,114 ---- let pwd = getcwd() exe 'cd '.s:path.'/macros' ! let filename = s:ChooseMacro('Choose a macro file for insertion:') exe 'cd '.pwd endif |