Vim is an advanced text editor and IMproved version of the Unix editor Vi often used to produce LaTeX code.

learn more… | top users | synonyms

2
votes
5answers
3k views

vim-LaTeX does not run bibTeX

I'm on a Windows 7 machine, using the most recent version of vim-LaTeX with gVim. With all of the defaults, using \ll to compile my document only runs LaTeX once, when it should run multiple times, ...
0
votes
0answers
22 views

MathJax in the terminal? [on hold]

I really enjoy working out of my zsh and was wondering if there existed a tool that would allow me to edit LaTeX in my zsh, (say in vim) and render it according to the terminal fonts. So I don't want ...
1
vote
2answers
90 views

Customize vim-latex to write file prior to compilation

<leader>ll compiles the current file, but I'd like it to also write the current file before it does that. Personally, I don't understand why this is not default behavior. When would one ever ...
0
votes
1answer
94 views

LaTeX-Vim Return to edit after error?

For example I compiled something, and got error, it gives me 3 splited windows in vim, but if I :q all of them, I quited the vim. Is there a way so that I can go back to edit after compile error?
2
votes
0answers
39 views

vim-latex suite doesn't expand packages

Recently I reinstalled Ubuntu 15.10 (after having too many problems with 16.04) and everything else I need. I used Vim-latex to write, compile and view tex documents, and it was so easy to press F5 ...
0
votes
0answers
32 views

Installing Latex-Suite for VIM

I downloaded and followed the instructions from here to download the Latex-Suite for VIM on OS X 10.10.4. It looks great, and I created a very simple latex file. I go to compile it - command \ll I ...
0
votes
1answer
106 views

Folding in Vim latex-suite

I have installed and configured vim latex-suite successfully. However whenever i try to type ":\rf" in normal mode i get an error "E10 : \ should be followed by /,? or &" . Could anyone tell me ...
2
votes
1answer
50 views

What can I put in the *.latexmain file?

My *.latexmain files are usually empty. I just use the file name to indicate which file is the main file. In the Vim Latex Suite files, I noticed a file projecttemplate.vim with the following ...
0
votes
1answer
30 views

Configure vim-latex suite to use treat .tikz files as ordinary .tex files

I use file externalization with tikz, so I usually put the tikzpicture environments each in a separate file with extension .tikz. When I open such files with Vim, the syntax is not highlighted, which ...
1
vote
0answers
19 views

Window focus problem during inverse-search from Okular to GVIM

I have just setup the nice inverse search feature, from okular, by using the command gvim --remote-silent +%l %f as a custom-editor. It seems to work perfectly fine except a small bug that has been ...
3
votes
2answers
3k views

Errors/Warnings in LaTeX Output

I use Vim to edit LaTeX documents and pdflatex to compile the documents. One problem with using pdflatex is that it takes time to go through the output to see if there is any warning/errors. Sometimes,...
3
votes
1answer
460 views

Error installing Vim-LaTeX using Pathogen on MacVim

I installed vim-latex using pathogen following the very clear instructions proposed in: How to install vim-latex? However, when I open a .tex file using MacVim, I get the following error message: ...
1
vote
0answers
27 views

Vim LaTeX-suite auto-completion: unable to run outline.py

I am having a hard time getting autocompletion to work in Vim Latex-suite. When I type \ref{ and press , OS window pops up with a message: Windows can't open this file: outline.py After closing ...
3
votes
1answer
319 views

Vim-Latex: forward search doesn't work

I know people have had this kind of problem before, but I haven't been able to find the solution to my problem anywhere. First of all, calling Tex_ForwardSearchLatex() with <leader>ls doesn't ...
1
vote
1answer
34 views

How to get vim-latex's \cite completion to pick up the .bib file from the directory below?

I'm using the Classic Thesis Latex template which provides the Chapters in a separate folder in relation to the 'root' file and the .bib file. When editing the chapters in Vim I would like to use the ...
3
votes
1answer
39 views

Turn off Vim spellcheck in custom region

I have the following definitions in a .tex file preamble: \newcommand{\beq}{\begin{eqnarray}} \newcommand{\eeq}{\end{eqnarray}} If I then use \beq and \eeq to define an equation array region, spell ...
3
votes
0answers
62 views

vim-latexsuite syntax highlight in macro parameter

I'm using vim with vim-latexfor editing my LaTeX-files. I notice that the \begin{env} and \end{env} doesn't colorize when they are in a macro parameter (the \vary command and question environment is ...
3
votes
2answers
285 views

How can I quickly type a LaTeX accent in vim?

I want to write some text in Spanish in which accents are used frequently, such as ó for which I have to write \'{o}. I have seen that in vimtex they have defined for example `a to convert into \...
1
vote
0answers
26 views

macvim: latex-suite reference autocomplete does not work after mac update

I recently had a software update of my macbook pro, then I noticed an issue with my latex-suite autocomplete function for references. \cite{<F9>} not will always open an empty outline window ...
1
vote
1answer
558 views

macvim, skim, and sync - skim use *open* copy of file?

When using Skim.app for reverse-searches, is there any way to make the .tex file come to the front if it's already open in a macvim tab? What if there are multiple vim windows open (not just tabs)? ...
7
votes
5answers
3k views

Macvim and Skim sync does not work

Don't really know where to begin. I have installed the latest macvim and skim. Put the mvim in path. Setup skim sync with the default macvim (and tried some custom stuff also). However it will not ...
1
vote
0answers
27 views

Vim LaTeX-suite: EFI macro expand differently

I an learning LaTeX-suite, and I found that the EFI macro for figure environment performance differently for different documents. Sometimes the image file line would be \psfig{figure=<+eps file+&...
1
vote
1answer
90 views

How can I use BibTeX and Biblatex properly using vim LaTeX suite?

I just stated using the vim-LaTeX-suite. It works quite well, but I fail in using BibTeX. My vimrc file is the following. I use an external build order and I think this causes additional problems: ...
0
votes
0answers
101 views

How to add custom environment in latex-suite

Latex-suite provides short keys to make working with environments like equation easier in VIM. For example, I like to press <F5> to change the environment. One of the environments that I find ...
2
votes
0answers
37 views

How to Customize Folding Environments in ViM Using vim-latex for Beamer

I'm trying to configure my ViM editor to improve the folding when editing Beamer files. I have vim-latex installed (using Vundle). Now I'd like to customize my vim-latex; specifically, I'm trying to ...
1
vote
0answers
19 views

Vim-Latex: forward search doesn't work well on Windows, featuring significant delay and no visual cues

I managed to let forward search work on my Windows machine with the following specification in my _vimrc: let g:Tex_ViewRule_pdf = 'C:\Program Files\SumatraPDF\SumatraPDF.exe -reuse-instance -...
0
votes
2answers
56 views

How to lint for undefined control sequence?

So I'm beginning to learn LaTeX and often find myself mistyping control sequences like \idotsint. I use editor plugins which call lacheck and chktex on the document which helps catch some errors, but ...
3
votes
1answer
299 views

vim-spell: exclude custom LaTeX commands

I'm using Vim (with vim-latex) to write my LaTeX documents. I made a bunch of custom commands to mark different kinds of "variables" (as in programming languages) I use in text, in formulas and in ...
3
votes
1answer
45 views

Elaborate C++ parsing and the listings package

I would like to have the colors the gruvbox coloring scheme for (g)vim uses in a lstlisting environment. Is the listings package too dumb to differentiate e.g. between "template", "const" and other ...
0
votes
1answer
41 views

What is the best way to add missing packages?

So far I worked with Texmaker on Windows, and it worked perfectly. Recently I started to write my .tex files with vim on Ubuntu. But when I try to compile these it tells me File 'cite.sty' not found. ...
1
vote
0answers
172 views

Citation completion in vim latex-suite on Windows 8.1 Update

This is potentially a duplicate of this tex.se question, but I tried all the advice with still no solution. I am on 64-bit Windows 8.1 Update with gvim 7.4, Python 2.7.7 (Anaconda 2.0.1 32-bit), and ...
4
votes
1answer
585 views

LaTeX indentation in vim

Does there exist a good indentation option/plugin for vim? I tried different combinations of autoindent, smartindent and cindent, what I get is: \begin{tabular}{ c } foo \\ bar \end{tabular} ...
9
votes
3answers
3k views

Shortcut for inserting matching \end{something} in VIM

I remember some time ago I always used a shortcut in VIM that allowed me to type this (<X> is indication of the location of the cursor): ... rest of document ... \begin{<ENVIRONMENT>} ...
1
vote
1answer
121 views

Ignore errors in environments in latex-suite in vim

I use the latex-suite vim plugin, which shows me errors inline in my vim editor. However, I get false positives for certain environments like lstlistings. How can I configure latex-suite to ignore ...
8
votes
3answers
2k views

Getting \cite{} autocompletion to work in gvim with latex-suite on windows 7

I am using gvim (latest version) with latex-suite (latest version) on Windows 7 32 bits. This is a fresh install from my previous Ubuntu setup. Everything runs fine except for cite autocompletion, and ...
0
votes
0answers
50 views

vim+latexsuite: Compiling parts of a file

I have a question concerning Compiling parts of a file. It reads "Continue to debug this file as required and then replace the portion of the original file with this one." How can I then replace the ...
0
votes
0answers
154 views

Set up MacTex distribution as default on mac os

I have installed the MacTex distribution on OSX10 and until now I've been using the TexShop editor quite successfully. I want to change and start writing latex using the Vim editor but I haven't ...
3
votes
1answer
1k views

<M-i> mapping not working in Vim LatexSuite on linux

I'm running vim 7.0 on linux, with Vim LatexSuite. I'm trying to use the nifty-looking shortcut for adding items to an itemize environment. :h Alt-I <Alt-I> ...
14
votes
1answer
12k views

How to install vim-latex?

Can someone please help with installing vim with the latex plugin? I've tried searching online for easier instructions, but I can't find anything. I have very little experience with terminal and I ...
38
votes
6answers
18k views

How to setup synctex with vim, pdflatex and an open-source PDF-viewer under Linux?

Inspired by the comments to this answer I am curious how to actually setup and use forward/reverse (inverse) search with vim, pdflatex and an open-source PDF-viewer under Linux. Btw, to give more ...
0
votes
2answers
249 views

Remove a \textit{} or \emph{} in Vim with vim-latex (LaTeX-Suite)

Thanks to this SE answer I now know that I can emphasise the highlighted word with `em. Is there a way to remove the \emph{} from a word?
1
vote
0answers
51 views

macvim and latex-sutie: autocompletion of \cite{} using [F9] is glitchy

I am using a Macbook Pro to write some papers using latex, macvim, and latex-suite. I like the [F9] bibliography autocompletion for \cite{}, which comes really handy. However, the function is really ...
11
votes
6answers
4k views

How to get vim-latex's \cite completion to work?

I'm having issues with \cite completion. In the screenshot below, you can see what I get when I do \cite{ } F9. It is not doing what documentation says it would do, such as: Show a list that I can ...
0
votes
0answers
8 views

lstlisting indentation versus editor-formatting [duplicate]

Whenever I use the listings package to typeset code, I encounter the problem that the way lstlistings work collides with the formatting my editor likes (I use vim). For instance, see this code: \...
3
votes
1answer
176 views

How to get Vim Latex-suite projects (with .latexmain-files) to configure spelling in subfiles correctly

I use Latex in larger projects and I use the following file structure: project/ mainfile.tex mainfile.tex.latexmain tex/ subfile1.tex subfile2.tex ... The command \input{tex/...
0
votes
0answers
98 views

latex-suite (vim-latex) \cite F9 bibliography completion not working

I use latex-suite (vim-latex) to edit tex file with vim. But the action \cite{F9 doesn't do anything at all (i.e., no splitted window with bibliography entries as expected). Could anybody out there ...
4
votes
0answers
70 views

non-paired bracks break indent in vim

It seems that latex-suite do the auto indent wrong when there are no closed bracks, for example, in the following $[0,1)$ is the cause of problem: \begin{equation} f(x),\quad x\in[0,1) \end{...
1
vote
0answers
34 views

vim+ Latex Suite, Can the compile window be in a sub-window?

I am using vim+latex suite. When \ll, the compile window takes the whole area of the vim window, no matter how many other subwindow I have opened. Can the compile process just be shown in another sub-...
1
vote
0answers
162 views

vim + knitr + synctex + file watch + sumatrapdf (on windows)

I'm trying to get a task runner watching a directory for changes and then run the following: knit Rnw file pdflatex the resulting tex file (with bibtex) open pdf viewer and have both forward/reverse ...
0
votes
1answer
55 views

Compiling Latex in Vim Results in Error

I am trying to compile the following LaTeX using vimtex continuous compiling in vim: LaTeX: \documentclass[12pt]{article} \title{Electrolysis of Water and Aqueous Solutions} \author{Carlo Abelli \\ ...