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

learn more… | top users | synonyms

2
votes
1answer
519 views

vim and the Makefile

I'm trying to use a Makefile to compile latex files within vim (and update the view of my current pdf file within my favourite viewer). Here is a little example (I'd like to expand that lateron): ...
4
votes
1answer
417 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 = ...
1
vote
2answers
266 views

Correct spacing around environments without the comment symbol when using parskip?

I prefer inserting blank lines between paragraphs, and no indenting. I know that the package parskip can offer this functionality, but it comes with a catch. When writing \documentclass{article} ...
2
votes
1answer
610 views

Spell Check in VIM Latex Suite not working after a particular word [closed]

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 ...
2
votes
1answer
154 views

How to forward search to a character when editing using Vim?

We can forward search to a line in a tex file opened in Vim by setting the following in a pdf viewer (I'm using okular): gvim --servername GVIM --remote +%l %f But can we go straight to the ...
5
votes
1answer
2k 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 ...
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 ...
2
votes
1answer
281 views

(Vim+latex) How to compile a single tex file in a project directory using \ll

I am using Vim+latex. In my project directory, I have another separate tex file (for example a tikz/PGF file to draw a figure). When I input \ll, instead of compiling my current file, the system ...
7
votes
1answer
253 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 “ ...
5
votes
1answer
587 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 ...
3
votes
1answer
329 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 ...
1
vote
1answer
493 views

Howto use Vim + LatexSuite to convert plain text lists to itemize/enumerate etc

I am often burdened with "converting" and "including" stuff into larger documents. I have compiled some scripts and voodoo to ease my work but rather often I'm still facing the task of manually ...
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>} ...
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 ...
1
vote
1answer
2k views

Install Vim and Latex suite

Good Afternoon All, I am trying to install Vim and Latex suite to work on my latex project. I need help with installing this properly on Mac OS X Lion. I have already installed MacVim. To setup ...
5
votes
1answer
523 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
410 views

<F5> in vim-latex doesn't expand environment

I'm new to vim-latex and have been reading some tutorials. I've noticed that the behaviour of the F5 on my machine is rather different from what the tutorials tell me. I'm supposed to expect F5 to ...
3
votes
0answers
520 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
1answer
983 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> ...
23
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 ...
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 ...
6
votes
1answer
652 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 ...
2
votes
0answers
128 views

vim-latex always moves the cursor to the beginning of the line upon compilation. How do I stop this? [closed]

I have posted this question to /r/vim, with no success. The title basically explains the situation: every time I compile with <leader>ll, Vim moves my cursor to the beginning of the line, which ...
0
votes
1answer
776 views

How to automatically truncate the length of a line in vim-latex?

Is there a way of automatically beginning a new line after reaching a particular length of a line in order to make navigation through a document easier in vim-latex? Example (text from ...
2
votes
1answer
915 views

Issues when compiling TeX files with Vim and LaTeX-suite

I'm having problems compiling a TeX file with LaTeX-suite on Ubuntu. In my .vimrc, I have the following lines : filetype plugin on set grepprg=grep\ -nH\ $* filetype indent on let ...
3
votes
3answers
2k 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 ...
6
votes
1answer
730 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 ...
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 ...
5
votes
1answer
2k 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 ...
18
votes
1answer
328 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
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 ...
2
votes
1answer
269 views

how to link sub-document with reference file for auto-completion in vim-latex?

I am writing a long document so I am making use of sub-documents and inserting them with \include. The problem I am facing is that as the \bibliography{} line is on the main .tex file the ...
4
votes
1answer
603 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
1answer
961 views

how to enclose selection in {} using vim-latex keyboard shortcuts

Is there an easy way of wrapping a selected text in {} with a shortcut in the same way you can turn a text into italics by typing `it while selecting a piece of text. I tried `{ but and that works ...
1
vote
1answer
454 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)? ...
13
votes
1answer
682 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 ...
3
votes
1answer
446 views

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 ...
0
votes
0answers
77 views

Why does '<++>' appear every time I use vim-latex suite? [duplicate]

Possible Duplicate: What does <++> signify? e.g. Using TeX-Environments to insert an enumerate will cause a strange symbol '<++>' at the end of \end{enumerate}. Anyone knows why ...
7
votes
1answer
590 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 ...
4
votes
1answer
710 views

What are the <++> in Vim latex-suite after typing in a bracket pair? [duplicate]

Possible Duplicate: What does <++> signify? In typing bracket pairs while coding, I usually type the opening and closing bracket before typing in the contents like so: ...
6
votes
1answer
1k 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
385 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?
19
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 ...
4
votes
2answers
892 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 ...
2
votes
1answer
873 views

How to make Vim LaTeX Suite show errors when compile

Compiling TeX with command : silent call Tex_RunLaTeX() The gvim window turns grey when there are errors. One needs to press Enter for each error to continue. It will be better if the error ...
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 ...
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 ...
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
3
votes
2answers
421 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 ...
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.