简体   繁体   中英

How to get rid of W11 when compiling latex using vim-latex-suite

When compiling from vim using latex-suite (with the command <leader>ll ) I often get the following error:

W11: Warning: File "yourLaTeXfile.log" has changed since editing started See ":help W11" for more info.

How can I configure vim/latex-suite to always set the autoread of the log-files produced by Tex_RunLaTeX() ? Would it be sufficient to re-map <leader>ll to Tex_RunLaTeX()! or will that introduce any new cool features?

How can I configure vim/latex-suite to always set the autoread of the log-files produced by Tex_RunLaTeX() ?

Find out which filetype is set for the file:

:setl filetype?

Then set up an autocmd:

:autocmd FileType <the-filetype-here> setlocal autoread

Alternatively, you can also directly define the autocmd on the file pattern :autocmd BufRead *.log ... , or append the :setlocal autoread directly to the <Leader>ll mapping.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM