Vim is an advanced text editor and IMproved version of the Unix editor Vi.

learn more… | top users | synonyms

33
votes
5answers
13k 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 ...
24
votes
5answers
4k views

Intelligent paragraph reflowing in vim?

I'm not sure whether this is an appropriate question for tex.SE. If you think questions like this should not be asked here, please voice you concern. If necessary I'll open a question on meta. For ...
22
votes
4answers
2k views

What is your favorite vi or vim command trick?

I just saw a similar question about Emacs/AUCTeX so this one was coming. I use nvi for all my editing including TeX and it would not change it for anything. However, even after almost 20 years of use ...
18
votes
1answer
327 views

Vim Configuration for expl3

I've started with programming in expl3 and vim doesn't realise that underscores are now part of LaTeX identifiers. I'd be much obliged if somebody could explain how to best configure vim so it has ...
18
votes
2answers
4k views

Set up vim with latex-suite to use latexmk

Today I started using vim in combination with the latex-suite plugin, and so far I love it. Other editors also make using LaTeX easier by providing code completed and such, but latex-suites's ...
14
votes
2answers
2k views

Is there any cheat sheet for vim-latex mappings?

I wonder if anyone knows any list of "magical words" such as vaw`em which changes the format to italics of the current word for vim-latex different than this one
13
votes
1answer
782 views

What does <++> signify when using Vim LatexSuite?

I have a LaTeX editing environment that does some assistive stuff such as auto-indenting, closing parentheses, etc. However, one of the things that it does is unknown to me, and is difficult to ...
13
votes
3answers
2k views

How to disable all Vim-LaTeX mappings?

I like some of the features provided by the Vim-LaTeX suite, but not all of them. In particular, I dislike all of the mappings like [[ = \left[ \right] and the automatic placeholder stuff with ...
12
votes
5answers
2k views

Help me to write Long LaTeX equations fast with colours and possibly with other aids

I am too slow LaTeX-typist, for example with the equations below I cannot find where I am missing some bracket. Could someone offer me some computational method? I use Vim but I am happy with any ...
11
votes
1answer
5k 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 ...
11
votes
1answer
638 views

What does 'missing \@ before…' error mean in vim?

I get this strange behavior when I have capitals before a period, like so 1 \documentclass{article} 2 \begin{document} >> 3 Another possible protein blah blah blah from GRIP/ABP. Blah ...
11
votes
2answers
2k views

Configuring vim to only check spelling in text regions

Is there a way to configure vim so that it only checks spelling in the text regions of tex files?
11
votes
3answers
3k views

Compiling a LaTeX document manually

I've created LaTeX documents before using 'nice IDEs' such as TeXnicCenter and have a little experience in general with TeX, however, now I'm wondering about creating one "manually". By that, I mean ...
11
votes
3answers
2k views

vim LateX-Suite indentation and line breaking

I'm now setting up Vim for use with LaTeX. This is about setting up the indentation. In the picture below, there are many things that need tweaking. Everything between \vskip .5cm and \vskip 1in is ...
11
votes
1answer
771 views

Vim: Get Rainbow Parenthesis work with Latexsuite?

I'm using the text editor vim (or MacVim) together with the LatexSuite plugin. It works good, so far, but there is one thing that annoys me: There is an awesome plugin, Rainbow Parenthesis, that will ...
10
votes
1answer
1k views

How to use the vim quickfix mode for LaTeX?

One nice feature of vim is the quickfix mode (:help quickfix) - after calling :make you can navigate through the error messages of e.g. your C compiler and vim jumps to the right locations. How do I ...
9
votes
3answers
2k views

Vim-Latex: Double-Quote Automatically Replaced

I use Vim with Vim-Latex plugin to edit my LaTeX documents. I have the problem that whenever I want to insert a double quote ("), it automatically get replace by (``). Any idea how can I disable that ...
9
votes
5answers
3k 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 ...
8
votes
2answers
2k views

Which LaTeX IDE has Vi plugin?

I'm looking for a LaTeX IDE which has Vi plugin, but I haven't found any. I tried out vim-latex, but I couldn't find a way to install it. Thanks in advance.
8
votes
2answers
463 views

Vim-latex adds extra brackets when typing empty brackets

I just installed the vim latex-suite plugin. Whenever I type empty brackets, parentheses, or braces, I get an extra pair of them, and I am moved to the middle of the new pair and put into insert ...
8
votes
1answer
384 views

Gnuplot inside LaTeX not working

I'm trying to create a gnuplot image inside my LaTeX document, but nothing is being displayed. My gnuplot works if I do it outside LaTeX. \begin{figure}[!ht] \begin{gnuplot}[terminal=pdf, ...
8
votes
1answer
1k views

Inline comments in LaTeX

Is it possible to make inline comments in LaTeX that do not extend until the end of the line? The actual problem I'm trying to solve is vim's annoying highlighting of the non-curly end-bracket here: ...
8
votes
1answer
394 views

Why does Vim highlighting treat _a differently than _b in math mode?

I am not using vim-latex, just the regular vim syntax highlighting for latex. To make sure of this I tested this by running: vim -u NONE -N I notice that if I am in math mode "f_a" will display ...
8
votes
1answer
2k views

In vim: How to enable spellchecking of text only and exclude listings

How can I set up vim in such a manner, that it spellchecks only the text portion of my file? I write a lot of reports that include code listings, which I would like to exclude from the spellchecking. ...
8
votes
1answer
233 views

`. shortcut doesn't expand to \cdot

According to latex-suite documentation, `. should expand into \cdot but this is not working for me. All other abbreviations (greek letters and math) do work. I tried looking in ...
8
votes
1answer
639 views

vim: nice folding function

I use Latex-Box but I really like vim-latex (a.k.a Latex-Suite) folding. I tried to copy Latex-Suite's folding.vim file to my ftplugin/tex folder but cannot make it work. Has anyone written a nice ...
7
votes
4answers
2k 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 ...
7
votes
1answer
246 views

Fix all quotes in a document (pasted from another)

I'm translating some documents from MS Word (written by someone else) to TeX for my own uses. There are quotation marks all over the place, some of which are "weird" (e.g., unicode character 201c “ ...
7
votes
1answer
69 views

What are some vim macros to assist indexing a book?

I am about to re-read my 400-page book and mark certain words for indexing. I'm looking for a set of VIM macros that would help me quickly go through the text marking words and group of words to be ...
7
votes
1answer
561 views

Make the vim minted style use light terminal-like highlighting instead of dark

Whenever I'm highlighting code with the minted package, I use \usemintedstyle{vim}, which looks okay aside from the fact that it looks like a dark VIM color scheme applied onto a light background and ...
7
votes
1answer
865 views

Using Vim Latex-live-preview with minted package

I was wondering if anyone had succeeded to make vim-live-preview with the package minted. When I tried to edit the pdflatex command winthin the script.vim by adding the -escape-shell switch, but ...
7
votes
1answer
344 views

How to dynamically change the output filename in Vim LaTeX Suite

Say, my .tex files are organized like this ~/Projects/proj_name/articles.tex. After compiling with LaTeX Suite, I want the output PDF file to be proj_name.pdf instead of articles.pdf. Since I have ...
7
votes
0answers
251 views

vim-LaTeX does not construct correct argument for bibtex

My pdf compile rule is pdflatex -interaction=nonstopmode $* & bibtex $* & pdflatex -interaction=nonstopmode $* Everything works fine except for the bibtex call. The reason is that "$*" is ...
6
votes
6answers
765 views

Can you get Vim to behave like TeXworks or vice versa?

There are several features of TeXworks that I find substantially decrease my editing time. I tend to write a large number of rather small LaTeX files, which means I'm opening and closing files ...
6
votes
1answer
367 views

What does a number followed by “ in” mean?

The TeX syntax highlighter that I use colors all occurrences of a number followed by " in", e.g. 0 in or 32 in in a dangerous bright red, in almost all contexts. Why?
6
votes
1answer
708 views

How to setup Vim-Latex to run only 1 instance of SumatraPDF?

I'm trying to setup vim-latex plugin to do default compile and view using PDF, with SumatraPDF as the default reader. Here's the configuration I made in .vimrc: let g:tex_flavor='latex' let ...
6
votes
1answer
1k 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>} ...
6
votes
1answer
59 views

Don't open vim when I exit pdflatex

When I'm working on a LaTeX document and compiling with pdflatex, I frequently have compile errors. To get out of pdflatex when running it from the command line, I use the exit command to end the ...
6
votes
1answer
184 views

Disable visually italicizing characters in \textit when using LaTeX-Suite

I am using Vim + LaTeX-Suite plugin to write LaTeX source file. I noticed that LaTeX-Suite would automatically italicize characters in \textit (which made text inside almost illegible) and bold ...
6
votes
4answers
217 views

Highlight / color parts of text

LaTex newbie here. Currently using vim with solarized color scheme to edit .tex documents. When writing I often jump around to different parts of the document, leaving gaps behind to work on later. ...
6
votes
1answer
494 views

How do you jump to an error from the Error List in LaTeX-suite?

I just discovered LaTeX-suite and was overjoyed with the breadth of the compiling and debugging options, but for some reason the primary debugging mechanism is not working for me. When I compile with ...
6
votes
1answer
977 views

How can I use the Vim LaTeX-Suite multiple compile option with BibTeX and the -aux-directory option?

I have a document composed of several subfiles and so have used the -aux-directory command to put all of the temporary files in a subfolder, 'auxdir', to keep my working folder clear (and me sane). I ...
6
votes
1answer
626 views

vim-latex with strange (unwanted) highlighting [closed]

I'm using vim with the latex-suite package installed on Ubuntu 11.10 to edit LaTeX files. The latex-suite highlights the LaTeX source as I edit it, but it seems to get very confused after something ...
5
votes
1answer
562 views

Is there a default / official / standard Vim indentation file for TeX, or just best practices for TeX source indentation?

If you see here, the author mentions an "official version" of an indentation script from Johannes Zellner. The link is broken and while there are traces of Zellner all over the interwebs, I can't find ...
5
votes
2answers
2k views

How do you use MacVim for LaTeX?

I'm a long-time Emacs+AUCTeX user (I even once wrote a short tutorial for it!), but for a couple of different reasons (problems maintaining my Emacs configuration, the beauty of Drew Neil's voice, and ...
5
votes
1answer
417 views

arara: show warnings only in the last compilation step

I use this function to compile my latex documents in gVim with arara: function! CompileTex() silent write! call setqflist([]) echon "compiling with arara ..." exec "lcd %:h" ...
5
votes
1answer
524 views

How to make vim short key for xelatex and pdflatex both?

I have learned that the following setting in _vimrc will let \ll compile by engine pdflatex: let g:Tex_DefaultTargetFormat='pdf' let g:Tex_CompileRule_pdf = 'pdflatex ...
5
votes
1answer
636 views

How do I prevent LaTeX-Suite from opening files automatically when there's an error?

I'm using Vim with LaTeX-Suite. Occasionally when I compile a file with errors using <Leader>ll, the error in my source is such that the LaTeX compiler registers an error in a file deep in the ...
5
votes
2answers
1k 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 ...
5
votes
1answer
1k views

Why is LateX Suite (Vim) so inconsistent

I am trying to transition to Latex Suite for Vim, but it seems to have several problems, observe: The first \subsection command (90) is shown but the second one (124) is not. Again the third one is ...