Vim is an advanced text editor and IMproved version of the Unix editor Vi.
23
votes
4answers
8k 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 ...
20
votes
2answers
2k 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 ...
16
votes
3answers
997 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 ...
13
votes
1answer
230 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 ...
12
votes
2answers
2k 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 ...
11
votes
2answers
938 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
9
votes
5answers
982 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 ...
9
votes
3answers
1k 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
3answers
1k 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 ...
9
votes
1answer
1k 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 ...
9
votes
1answer
818 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
1answer
582 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 ...
9
votes
2answers
594 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 ...
8
votes
1answer
418 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 ...
7
votes
1answer
691 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:
...
7
votes
2answers
1k 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 ...
6
votes
2answers
1k 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?
6
votes
1answer
136 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 “ ...
6
votes
1answer
931 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. ...
6
votes
1answer
400 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 ...
6
votes
1answer
108 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 ...
5
votes
1answer
235 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 ...
5
votes
1answer
59 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. ...
5
votes
1answer
431 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 ...
4
votes
1answer
249 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?
4
votes
3answers
781 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 ...
4
votes
2answers
507 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 ...
4
votes
1answer
234 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 ...
4
votes
1answer
235 views
Vim syntax highlighting of partial tex file used with \include is incorrect
I am using vim to edit latex files. The document is long and so I split each chapter in its own .tex file. Each .tex file is then included into the main document using the \include directive.
The ...
4
votes
1answer
751 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 ...
4
votes
2answers
487 views
vim+LaTeX Suite: How to jump to the Error List window?
I am trying to learn how to use vim latex-suite and following the tutorial, A (very) quick introduction to Latex-Suite. When I compiled and got some errors, I see the Error List, etc with split ...
4
votes
1answer
181 views
Issues when using inverse/forward search with vim and xdvi (linux)
I am using vim 7.3.35 with the vim-latexsuite on ubuntu. After googling around I managed to setup forward/inverse search with xdvi by adding the following to my .vimrc:
let g:Tex_CompileRule_dvi = ...
4
votes
1answer
446 views
How to do forward search to PDF file opened with Okular from include files when editing using VIM/GVIM
I'm using vim to edit my tex files and I use latex suite as a plugin to compile my tex sources and view them in using Okular pdf viewer.
Setting the following in Okular settings makes inverse search ...
4
votes
1answer
345 views
Strategy for writing a long document
I am beginning to write my PhD thesis and I thought about getting some feedback and general tips. Based on your experience how would you do it?
I am also concerned about the dialogue between my ...
4
votes
0answers
478 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 ...
4
votes
0answers
480 views
latex-suite on OSX - citation completion not working [closed]
So I have just installed latex-suite using the default version of vim that ships with OSX 10.6. The problem I'm having is that \cite completion is not working properly. This is what happens:
Begin ...
3
votes
1answer
190 views
vim-latex: “I can't write on …” error
I am using vim-latex. I compile TeX document using \ll command, then \lv to view it. It generates a PDF file. So far, so good. The problem starts when I try to modify my TeX file and compile it again ...
3
votes
1answer
339 views
Change <C-j> binding for vim-latex
I am using the C-j map for regular navigation in Vim; it is defined like this in .vimrc:
map <C-j> <C-e>
However, C-j is redfined in the latex suite. When I try to use the described ...
3
votes
1answer
134 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 ...
3
votes
2answers
92 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 ...
3
votes
1answer
423 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 ...
3
votes
2answers
448 views
How can I turn Vim LatexSuite on Manually?
VLS's commands such as ^J and F5 do not work always for me inside Vim so how can turn VLS manually or do some other tricks to get VLS working more often? The word "often" could mean that VLS gets ...
3
votes
2answers
280 views
Adding extra lines/spaces in source, *not* affecting semantics
I'm editing a file with quite huge interleaves of text and formulas like this
lorem ipsums
\begin{align}
foo & bar\\
qux & rofl\\
& toto
\end{align}
lorem ipsums
…
And I face ...
3
votes
2answers
72 views
Creating a section template
I'm reading a lot of papers, and writing notes on them as I go. I want to make a single document containing one \section for every proceedings-year, with a \subsection for every paper. (I'm using ...
3
votes
1answer
122 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 ...
3
votes
1answer
372 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>}
...
3
votes
1answer
327 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 ...
3
votes
1answer
288 views
Spell Check in VIM Latex Suite not working after a particular word
In latex I need to type the sequence$G^{\{ x \}}$ to get the desired equation. The equation works fine, but after this spell check does not work for the remaining text. Spell check works fine before ...
3
votes
0answers
313 views
Getting “LaTeX-Box” Vim plugin to work with biblatex (biber) [closed]
I am using the LaTeX-Box VIM plugin for my TeX editing and love it, but I would like to use the omnicomplete freature for Biblatex citations, is this possible?
3
votes
0answers
190 views
Vim-LaTeXsuite shows me my .bbl file for errors in the .tex file [closed]
I'm writing my doctoral dissertation in LaTeX with Vim-LaTeXsuite, and I find that Vim-LaTeXsuite is often determining the location of errors incorrectly, particularly when the error is a \ref{} to an ...
