Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7831
Modified Files:
main.vim
Log Message:
New: Use Vim7's readfile() function in Tex_CatFile() if available.
Index: main.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v
retrieving revision 1.92
retrieving revision 1.93
diff -C2 -d -r1.92 -r1.93
*** main.vim 20 Jan 2006 16:35:20 -0000 1.92
--- main.vim 5 Feb 2006 17:53:02 -0000 1.93
***************
*** 926,930 ****
endif " }}}
" Tex_CatFile: returns the contents of a file in a <NL> seperated string {{{
! if has('python') && g:Tex_UsePython
function! Tex_CatFile(filename)
" catFile assigns a value to retval
--- 926,934 ----
endif " }}}
" Tex_CatFile: returns the contents of a file in a <NL> seperated string {{{
! if has('*readfile')
! function! Tex_CatFile(filename)
! return join(readfile(filename), "\n")
! endfunction
! elseif has('python') && g:Tex_UsePython
function! Tex_CatFile(filename)
" catFile assigns a value to retval
|