[Vim-latex-cvs] vimfiles/ftplugin/latex-suite wizardfuncs.vim,1.11,1.12
Brought to you by:
srinathava,
tmaas
|
From: <mi...@us...> - 2003-04-14 17:14:59
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv28510
Modified Files:
wizardfuncs.vim
Log Message:
- proper handling of <Plug> thing, remove hard map to F10
- temporary file has .tex extension
Index: wizardfuncs.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/wizardfuncs.vim,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** wizardfuncs.vim 6 Apr 2003 22:59:37 -0000 1.11
--- wizardfuncs.vim 14 Apr 2003 17:14:55 -0000 1.12
***************
*** 236,246 ****
" ==============================================================================
"
! nnoremap <silent> <Plug>Tex_PartCompilation :call Tex_PartCompilation("f","l","v")<CR>
if !hasmapto('<Plug>Tex_PartCompilation',"v")
! nnoremap <buffer> <silent> <F10> <Plug>Tex_PartCompilation
endif
- map <F10> :call Tex_PartCompilation("f","l", "v")<cr>
command! -nargs=0 -range TPartComp silent! call Tex_PartCompilation(<line1>,<line2>, "c")
command! -nargs=0 TPartView silent! call ViewLaTeX("part")
--- 236,245 ----
" ==============================================================================
"
! noremap <buffer> <silent> <Plug>Tex_PartCompilation :call Tex_PartCompilation("f","l","v")<CR>
if !hasmapto('<Plug>Tex_PartCompilation',"v")
! vmap <buffer> <silent> <F10> <Plug>Tex_PartCompilation
endif
command! -nargs=0 -range TPartComp silent! call Tex_PartCompilation(<line1>,<line2>, "c")
command! -nargs=0 TPartView silent! call ViewLaTeX("part")
***************
*** 258,266 ****
let tmpfile = tempname()
let g:tfile = tmpfile
"Create temporary file
" If mainfile exists open it in tiny window and extract preamble there,
" otherwise do it from current file
! let mainfile = Tex_GetMainFileName()
if mainfile != ''
exe 'bot 1 split '.mainfile
--- 257,266 ----
let tmpfile = tempname()
let g:tfile = tmpfile
+ let tmpfile = tmpfile.'.tex'
"Create temporary file
" If mainfile exists open it in tiny window and extract preamble there,
" otherwise do it from current file
! let mainfile = Tex_GetMainFileName(":p:r")
if mainfile != ''
exe 'bot 1 split '.mainfile
***************
*** 271,275 ****
endif
" Write range to file, check how it works with marks, range and //,//
! if a:mode == 'v'
exe a:firstline.','.a:lastline."w! >> ".tmpfile
else
--- 271,275 ----
endif
" Write range to file, check how it works with marks, range and //,//
! if a:mode == 'v'
exe a:firstline.','.a:lastline."w! >> ".tmpfile
else
|