Questions tagged [vim]

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

Vim is an advanced text editor and IMproved version of the Unix editor Vi often used to produce LaTeX code. For more information about Vim, see the official website: http://www.vim.org/, the vim tag on StackOverflow, and the Vi and Vim StackExchange site.

The best-known LaTeX package for Vim is ; if your question refers specifically to that package, add that tag too.

Frequently Asked Questions

  1. How can I set up Vim, SyncTeX, and an open-source PDF viewer in Linux?
  2. How can I install vim-latex on Mac?
288 questions
28
votes
4 answers

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 I never stop to be amazed by clever trick people…
20
votes
3 answers

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 while still having Vim-Latex enabled?
Rafid
  • 5,717
8
votes
1 answer

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 main problem is that when edited the separate .tex…
6
votes
1 answer

When loading LaTeX files in vim (7.3) I get the error "perhaps you should insert a `~' before '\ref' "

I have the over 30 errors in my LaTeX file, all over the \ref{...} command, and all following this similar pattern (I put it as a quote instead of code as it is long and code does not wrap) I returned and saw under the sun, that the race is not to…
puk
  • 3,061
  • 5
  • 30
  • 41
4
votes
3 answers

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 triggered with every *.tex -ended file. Also, how can…
hhh
  • 8,743
4
votes
1 answer

Change binding for vim-latex

I am using the C-j map for regular navigation in Vim; it is defined like this in .vimrc: map However, C-j is redfined in the latex suite. When I try to use the described (imaps.vim) way by doing: imap
gauteh
  • 241
4
votes
2 answers

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 windows. I am in Debugging LaTeX source files page of…
Chang
  • 9,528
4
votes
0 answers

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{equation} will indent to \begin{equation} …
user19832
  • 1,585
3
votes
2 answers

custom mapping for >italicize marked text / text under cursor< (using vim)

I can't find this here, nor anywhere else. Either it's too simple, or I'm looking at the wrong places, or whatever. (Maybe the answer is out there somewhere, or worse, in here somewhere without my knowing). I'd like to create a "shortcut". when my…
pats
3
votes
1 answer

what is the key binding of $ symbol?

I recently installed the snipmate plugin, and I'm having a hard time understanding how it works. I have this in my tex.snippets file: snippet begin \begin{} ... \end{} block \\begin{${1:env}} ${0:${VISUAL}} …
3
votes
1 answer

vim-latex shortcuts

I am facing a problem for using shortcuts provided by vim-latex. Say, I want \textbf, so I was trying `bf. But, given, `b is a shortcut for \beta, I always end up with something \betaf. FBF works, how can I use `bf? any help?
BaRud
  • 2,179
3
votes
0 answers

How to understand vim-latexsuite template expression evaluation?

I'm trying to build out LaTeX templates for my engineering coursework, and I love the vim environment for editing, so I've been using vim-latex to integrate the two. I don't quite understand how the templates are being interpreted by vim-latex &/or…
Evan
  • 31
2
votes
0 answers

AutomaticLaTeXPlugin + MacVim on OSX Lion

I am desparatly trying to get the AutomaticLaTeXPlugin to work with MacVim. I previously worked with Latex-Suite but i really like the autocompilation, progressbar .. that AutomaticLaTeXPlugin seems to offer. I fullfill all the Requirements. I am…
bioslime
  • 1,153
2
votes
0 answers

Vim color scheme for Latex

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 (perhaps something designed for a light background,…
bongbang
  • 385
2
votes
1 answer

LaTeX plugin for vim editor in Linux

I have installed gvim on my Ubuntu 12.04 operating system.How to install the LaTeX plugin for gvim?I have TeXlive installed. I used the following link to follow to the…
subham soni
  • 9,673
1
2