Re: [Vim-latex-devel] text clobbered in vim (but not gvim)
Brought to you by:
srinathava,
tmaas
From: Stephen W. <sw...@gm...> - 2007-11-20 13:29:39
|
Hi Martin and Mirko, Thank you both for your replies - glad to see I'm not alone with this problem! Martin, thanks for your suggestion which works for me. I've updated my .vim/after/ftplugin/tex.vim file with the following (I don't know how to test for "if not" so I've put the statement in the "else" part): if has("gui_running") else :nnoremap <buffer> <Plug>Tex_Compile :call Tex_RunLaTeX()\|redraw!<cr> endif Martin, I saw your reply to the thread "output of xdvi shows in tex file" - and thought maybe the same trick would apply. I get the same problem with xdvi writing its output into my tex file, so I tried this: :nnoremap <buffer> <Plug>Tex_Compile :call Tex_ViewLaTeX()\|redraw!<cr> ** but it doesn't work, and I'm not sure why. Any suggestions? Thanks for your help, Steve On 19/11/2007, Martin Sander <fo...@un...> wrote: > > Hey, this annoyed me to (a lot). I don't remember that this has always > been like this, maybe it has been introduced by vim 7.1. > Anyways, my workaround was using gvim, but now you got me motivated to > search for a real solution, and I found it: > > $ tail -2 .vim/after/ftplugin/tex.vim > "refresh after compiling.. > :nnoremap <buffer> <Plug>Tex_Compile :call > Tex_RunLaTeX()\|redraw!<cr> > > (I found that in latex-suite/compiler.vim:796). > A caveat is that you won't see the "compiled latex <n> times" message. > > Bye > > Martin > > On Sun, Nov 18, 2007 at 11:14:43PM +0000, Stephen Wilkinson wrote: > > Hello everyone, > > > > I normally use gvim with vim-latex, but I recently I tried vim (i.e. > > without the GUI), and when compiling with \ll or opening the viewer > > with \lv, messages from the external programs clobber the text in the > > vim window. > > > > For instance when compiling, I get: > > This is BibTeX, Version 0.99c (Web2C 7.5.4) > > The top-level auxiliary file: test.aux > > The style file: plain.bst > > Database file #1: test.bib > > > > at the bottom of the Vim window, and the text in the buffer > > "disappears"... it's still there and I can move the cursor over it, > > but it's invisible. If I use :redraw! all is well again (or else if I > > change buffer, or split the window, or invoke help, any of these > > probably cause redraw to be called and make the text reappear). > > > > Does anyone else have this problem? Can anyone suggest how I can make > > the redraw automatic? I thought of adding :redraw! at the end of the > > Tex_RunLaTeX and Tex_ViewLaTeX functions in > > ftplugin/latex-suite/compiler.vim but I would prefer not to edit the > > vim-latex files (as I'll lose changes at the next upgrade). > > > > Any suggestions welcome! > > Thanks, Steve > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > |