How do I make a vim-latex compilation correctly without having to save?
source link: https://www.codesd.com/item/how-do-i-make-a-vim-latex-compilation-correctly-without-having-to-save.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
How do I make a vim-latex compilation correctly without having to save?
I just started using Vim-LaTeX
.
The default dvi
output didn't work for me, so I changed the default to pdf
by adding "let g:Tex_DefaultTargetFormat = 'pdf'"
to my tex.vim
.
The only problem is that I need to save my document first (:w
) before compiling it (\ll
) and viewing in in Evince (\lv
). If I do not save it, and run \ll
and \lv
, latex is run on the saved file before I started editing it, and not on the buffer containing my edited file.
How do I make it so that vim saves my file and compiles my document when I hit \ll
? Thanks!
this is not the perfect solution but it will work, define a new map in your .vimrc:
map <f2> :w<cr><leader>ll
this works but there should exist a cleaner way of doing this.
Related Articles
How do you make simple arithmetic options in bash without having a syntax error
How would I make my own c ++ compiler?
How do I start a WCF service REST type without having to use metadata?
How do I make the content of a div without setting an explicit width?
How can I make a GROUP BY in Django without taking an aggregate function?
How do I combine mouseover, mouseout and click. Without having .museout ruin .click
How can I get a service from global.asax without having to invoke it?
How can I enter text into an HTML tag without having more built-in tag text?
How to serialize multiple objects in an existing XmlDocument without having the namespaces on each component?
How can I make the vim taglist plugin display useful information for javascript?
System.Linq.Dynamic.Core: How do I make a choice of several correctly?
How do I make a form of Twitter style bootstrap having multiple entries in a row?
How do I make Logback record an empty line, without including the pattern string?
How do I make Eclipse CDT auto-indent correctly when I use BOOST_FOREACH?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK