4

How do I make a vim-latex compilation correctly without having to save?

 2 years ago
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?

advertisements

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

I'm getting syntax errors when trying to do some simple calculations in a bash shell script. Obviously I'm doing it wrong but hopefully someone can point me in the right direction. diffSec=`expr $diff % 60` # works fine diffMin=`expr $diff / 60 % 60`

How would I make my own c ++ compiler?

Is it possible to do with Batch or FreeBasic? I know there not good for that kind of stuff, but right now, I'd rather not use something else. Also, if I can't do that I could do with just a free compiler.How would I make my own c++ compiler? I would

How do I start a WCF service REST type without having to use metadata?

I am creating a service REST type using WCF in C# Visual Studio 2010 . The service receives a JSON file and then replies back with another JSON. I have built a Windows Forms Application and got to make the service work by creating a channel. I just s

How do I make the content of a div without setting an explicit width?

I want to have a series of posts with titles and other information. The problem is, depending on how much space the containing div has and how long the titles are, it is causing my "post-summary" (title, date, etc) div to wrap to the next line m

How can I make a GROUP BY in Django without taking an aggregate function?

How can I do a GROUP BY in Django without invoking an aggregate function like Max, Sum, Avg, etc? In my case, I have a table that has columns like { local_path, parent, grandparent }, and I want to do SELECT local_path FROM ... WHERE grandparent = "f

How do I combine mouseover, mouseout and click. Without having .museout ruin .click

Situation I have a div, when your mouse is over this div another appears. When you leave the div with your mouse it dissapears. But when you click it it has to stay even if you leave the div with your mouse. Question How can i make .click over rule .

How can I get a service from global.asax without having to invoke it?

I have a simple app where I use global.asax to map a serviceroute to a wcf service through a custom servicehostfactory in Application_Start. The constructor of that service does some initial processing to set up the service which takes a bit of time.

How can I enter text into an HTML tag without having more built-in tag text?

I'm trying to use BeautifulSoup to parse a list of addresses on a page. When I get to a tag with text and embedded tags, how do I only grab text from the tag without getting text in any further (lower level) embedded text at all? I use a pTag to go f

How to serialize multiple objects in an existing XmlDocument without having the namespaces on each component?

How to serialize multiple objects into a existing XmlDocument in .Net/C#? I have a XmlDocument, which already contains data. I have multiple objects. Now I want to serialize them one by one and add them to the XmlDocument (AppendChild). This is how i

How can I make the vim taglist plugin display useful information for javascript?

I've recently abandoned mouse-driven, platform-specific GUI editors and committed entirely to vim. The experience so far has been fantastic, but I'm stuck when it comes to Javascript. The ever-popular taglist utility (using Exuberant Ctags) has been

System.Linq.Dynamic.Core: How do I make a choice of several correctly?

I am new to the System.Linq.Dynamic.Core. I have this: Let's say we have: Packs = new List<Pack> { new Pack() { IdAtSource="Pack1", Equipments= new List<Equipment>() { new Equipment { Id=1, GenericEquipment = new GenericEquipment() {

How do I make a form of Twitter style bootstrap having multiple entries in a row?

From official docs: Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout by adding .form-horizontal to the form (which doesn't have to be a ). Doing so changes .form-groups to behave as grid rows,

How do I make Logback record an empty line, without including the pattern string?

I have a Java application that's set up to use SLF4J/Logback. I can't seem to find a simple way to make Logback output a completely blank line between two other log entries. The blank line should not include the encoder's pattern; it should just be B

How do I make Eclipse CDT auto-indent correctly when I use BOOST_FOREACH?

I write this tiny C++ example in Eclipse 3.4.1 (CDT 5.0.1): #include <iostream> #include <vector> #include <boost/foreach.hpp> int foo() { std::vector<int> numbers; BOOST_FOREACH(int n, numbers) { std::cout << n << std:

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK