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

0
votes
0answers
23 views

MathJax in the terminal? [closed]

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 ...
0
votes
0answers
34 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
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
20 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 ...
1
vote
0answers
28 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 ...
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
42 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
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 \...
2
votes
0answers
40 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 ...
1
vote
0answers
27 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
0answers
28 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
102 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: ...
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 ...
2
votes
0answers
40 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
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 ...
2
votes
1answer
52 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
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
1answer
123 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 ...
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
1answer
110 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 ...
1
vote
2answers
92 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 ...
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 ...
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: \...
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{...
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 ...
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
56 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 \\ ...
2
votes
1answer
253 views

Vim and Latex on Mac Terminal

I am very, very new to vim and using it through the mac terminal app. Based on this snip bit and the terminal being native to osx, I am trying to avoid macvim or iTerm at this point, so have not ...
3
votes
1answer
66 views

Strange vim-latex behaviour

I have a problem when reinstalling vim-latex (possibly installing a newer version). Here is the code I typed \documentclass{article} \begin{document} $\pi$ $2^5$ \textbf{abc} $2^{\pi}$ \end{...
0
votes
0answers
61 views

VimLatex strange behavior exponents

I have macVim 7.3.754 and latex-suite installed. In insert mode, I type x^^ in order to typeset a power in Latex with base "x" and some exponent to be typed later, I initially get, as expected,...
0
votes
1answer
69 views

Vim LatexSuite: how to define IMAP that also moves the cursor?

I am using latexsuite in vim and I'm trying to make MBF in insert mode expand to \mathbf{}<++> and place the cursor inside the brackets. The following: :call IMAP('MBF', "\\mathbf{}<++>\&...
2
votes
0answers
62 views

vim-latex does not display compilation errors

I installed vim-latex using Vundle and have been trying to use it to write a LaTeX document. Using \ll compiles the document if there are no errors and opens the .pdf in my pdf viewer, exactly was I ...
0
votes
0answers
28 views

Produce two outputs in Vim-LaTeX compilation

I would like to make ViMLaTeX compilation to produce two outputs - let's say, one with the draft option in the documentclass command. Or even better - to have two different ViM commands, one for ...
2
votes
1answer
95 views

Redefine smart key mappings in vim's Latex-suite plugin

When using the Latex-suite plugin in vim, typing ... expands to either \ldots or \cdots (see section 3.9 Smart Key Mappings of the latex-suite manual). I am using a lot the amsmath package that ...
0
votes
1answer
35 views

VIM Latex Suite. Convert u1x1 to u_1(x_1)

In this question: VIM Latex Suite repeating symbols with subscripts and superscripts Anthony created this magnificent vimscript code: function! <SID>SubSuperscripts(keyOne, keyTwo) let l = ...
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/...
1
vote
1answer
177 views

VIM Latex Suite repeating symbols with subscripts and superscripts

I have a document that needs a lot of symbols in math environment, that have both superscripts and subscripts like x_1^1, x_1^2, x_2^1, x_2^2, with different bases. x could be y, z, etc.... Having to ...
1
vote
1answer
439 views

Creating Templates on Vim-latex suit template

I have a question on creating templates on vim-LaTeX suite. I placed a template file on /usr/share/vim/addons/ftplugin/latex-suite/templates/ with the content of <+ +> !comp! !exe!...
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?
1
vote
0answers
69 views

How to Disable visual Effect of \textit{} in latex-vim?

Disable visually italicizing characters in \textit when using LaTeX-Suite The answer in that question was slightly different from what I want. What philix says can't been added into .vimrc (at least ...
5
votes
1answer
248 views

Syntax highlight for footnotes in Vim

I always write my footnotes in LaTeX as Some text.% \footnote{This is the footnote text.} Text continued. This way the footnote is always on its own line beginning with \footnote{ and ending with } ...
0
votes
0answers
158 views

LaTeX syntax highlighting in vim

I recompiled vim (with lua support) (on an ubuntu machine) and now the syntax highlighting for LaTeX is disabled/broken. The latexsuite (e.g. \ll or \ls) seems to be working fine otherwise. How can ...
2
votes
0answers
632 views

Vim color scheme for Latex [closed]

I would like suggestions for a Vim color scheme for Latex. I love gruvbox for coding but it fails to highlight most Latex commands. Besides, maybe something different for typesetting is a good idea (...
3
votes
1answer
322 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 ...
0
votes
0answers
68 views

Vim-Latex: compile to multiple formats at once

I want a PDF document ultimately, but I'm setting my default target format to dvi in order to use the YAP dvi viewer as the default (the PDF viewer can't do forward searches on my Windows machine, I ...
1
vote
0answers
34 views

Vim Latex-Suite: macro expands but doesn't disappear [duplicate]

I'm learning to use the Vim Latex-Suite for the first time (although I'm experienced with both Latex and Vim separately) and the macro expansion doesn't seem to be working as it should. For example, ...
0
votes
1answer
236 views

vim plugin delimitmate doesn't work with tex file. Is there any other plugin for autoclose working fine with vim-latex?

I often use delimitmate plugin for autoclose. It works well in other file types except tex file. In other file type such txt, when I typeset (, I will get () with the cursor between the parenthesis. ...