The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [vim]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

Word count for files included with input

I'm trying to do a wordcount of my thesis project in LaTeX. I'm using VIM with VIMLaTeX on an ubuntu machine. I have the following code in my main.tex file \newcounter{Hoofdstuk} \newcommand{\file}{...
0
votes
0answers
19 views

Sections title does not appear in folding-text of VIM's latex-suite

I have issues with the folding of latex-suite. The title of Parts/Chapters/Sections/etc does not appear in the folding-text. \documentclass{article} \begin{document} \section{A section} Some ...
7
votes
2answers
2k views

Vimtex: how to display error messages?

I'm using LaTeX in Vim with plugins vimtex from lervag (GitHub link), latexmk and neovim, and it works just fine as long as I'm making no mistakes. I press \ll and compile by writing (:w) and the ...
2
votes
1answer
47 views

Vim-Latex (Latex-Suite) closes vim instance after compilation [closed]

When I create/change some labels, and recompile with \ll, the vim instance of my .tex document closes unexpectedly. I do nothing else. When using let g:Tex_MultipleCompileFormats = 'pdf' in my ....
0
votes
0answers
72 views

Using vim-latex-live-preview: how to take you where you edited the file

When I'm editing a .tex file in Vim with vim-latex-live-preview, I type :LLPStartPreview which opens the file at its beginning. Which command do I have to make such that the pdf viewer automatically ...
1
vote
1answer
211 views

Automatically Move Auxiliary Files to Subdir with Auto-Compiling Vimtex

I've seen numerous ways to move auxiliary files to a given directory via latexmk, or pdflatex (ex. latexmk -auxdir=/tmp <file>). But I am using vimtex with auto-compiling, so that whenever I ...
10
votes
2answers
2k 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 ...
0
votes
1answer
129 views

Use arara with continuous compilation (with vimtex)

I've been using vimtex with latexmk to typeset my LaTeX documents for a while now. But I'm trying to use arara for a new project, as one of the team members suggested to use it. Since I always use (...
0
votes
2answers
46 views

Vim: typing lparen “(” shifts entire line to the right

I hope this is not off-topic, but I don't know where else to ask. When typing in insert mode, only in .tex files, typing a lparen shifts the entire line to the right by my tabstop. Typing an rparen ...
1
vote
2answers
153 views

How do I set XeLaTeX as my default engine?

I use Neovim with the vimtex plugin and latexmk but I want to make it use XeLaTeX by default instead of PDFLaTeX because I have to use fontspec quite often for my college papers. I use TeX Live.
3
votes
2answers
880 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 ...
21
votes
6answers
7k 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>} ...
1
vote
1answer
117 views

Forward search with vim-latex and evince

OS: Ubuntu 18.04 LTS Bionic texlive version: 2019 Vim version: 8.1 , big Vim Plugin Manager: pathogen Vim Plugins: vim-latex (LatexSuite) I had changed the settings in my tex.vim file so the ...
0
votes
0answers
55 views

Vimtex - Compile pdf to loaction of cursor on vim

I'm using neovim with vimtex on Ubuntu to write tex files. My .vimrc file is here - https://pastebin.com/0Hs5EaEg When I'm saving my .tex file vimtex automatically compiles the tex to pdf (on ...
0
votes
1answer
374 views

Set up vim, latex for AGU template

On a Mac, I have been using vim-latex for a while and had set it up a while ago to output pdfs via the :ll command in vim (using pdflatex if I'm correct) and viewing the output via the :lv command (...
7
votes
5answers
20k 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. ...
0
votes
0answers
17 views

vim-latex, remove spell checking from inside all commands from a package [duplicate]

When writing LaTeX documents in vim with spell checking sometimes words that shouldn't be is marked as spelling ends up being marked as spelling. I have problems mainly with commands from the command ...
1
vote
0answers
51 views

latex with vim irritatingly opening new buffer window [duplicate]

I edit my Latex in (g)vim. Now, when I am getting any error in compiling, vim is irritatingly opening the file in a new buffer, and moving to that buffer. For example, say, if I am getting an warning ...
1
vote
0answers
192 views

Using synctex with CLI vim and Skim

My setup is running a command line interface vim (using iTerm) and Skim for my pdf viewer. I would like to set up synctex with Skim, but nothing I've tried has worked. Here is what I am doing: I am ...
2
votes
1answer
457 views

Are there any alternatives to vim-latex?

Are there any good alternative plugins that someone has put together for working with latex in vim? I use the vim-latex latex suite, but it's a bit much. I'm pretty sure I use maybe 10% of the ...
1
vote
0answers
69 views

When to use `\` character and when not?

I am using VIM with with syntastic, which is just a syntax checking plugin. When I am using commands like \raggedright or \raggedleft following a space and then some text, it gives me an annoying ...
0
votes
0answers
47 views

Glossaries fails to print - Vimtex

I'll start with a disclaimer that this might be a Vimtex-specific issue, and that I made another post here (Glossary stopped compiling after adding an entry - deleting/commenting out the entry hasn&#...
0
votes
0answers
42 views

Problem using Vim-LaTeX on my Mac

I installed Vim-LaTeX-1.10.0 (per the install instructions on SorceForge) in /Users/tom/.vim and configured .vimrc per the instructions. After starting mvim (or vim), I tried entering: helptags ~/....
2
votes
2answers
401 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+&...
0
votes
0answers
67 views

VimLatex-suite SageTex compile shortcut

I am using LaTeX in Vim with VimLaTeX-Suite and i just started using Sage and i want to implement SageTex in my documents, but everytime i want to compile a have to follow this process in the terminal ...
2
votes
2answers
672 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 ...
3
votes
1answer
644 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
1answer
2k views

Setting up a LaTex environment for Vim

I've always used SublimeText for writing and compiling my LaTex files, but recently I've moved the majority of my code to Vim, and I would like to do the same thing with LaTex documents. I am on OSX ...
3
votes
2answers
810 views

Vim does not recognize math environment (but handles other math fine)

So on one of my pc's the vim install dos not recognize math environments such as align and equation Is there a way to turn this on?
14
votes
1answer
2k views

How do I make vim highlight math properly in the align environment?

Sorry if this is the wrong place to ask this, I'm new to the site :/ My issue is this: when editing in vim, my syntax file highlights underscores and carets when found in non-math text, which is fine,...
2
votes
1answer
36 views

vim latex-suite only working if existing `.tex` file includes latex code

On a fresh vim latex-suite install, none of the vim latex-suite shortcuts work unless there's pre existing latex code in the file.
4
votes
6answers
6k views

vim-LaTeX does not run bibTeX

I'm on a Windows 7 machine, using the most recent version of vim-LaTeX with gVim. With all of the defaults, using \ll to compile my document only runs LaTeX once, when it should run multiple times, ...
11
votes
2answers
14k views

How to set up spell-checking with vim?

I'm using vim to write my thesis. It's a multi-document project, with most tex files in subdirectories from the master-document. I've set up a couple of \newcommands to replace the use of \section*{} ...
3
votes
1answer
208 views

How to use \paragraph without seeing the title in the final pdf?

I am writing a review and using Latex to create the document. Since I have to go back to many many references I want to take advantage of the folding option with each paragraph I write so I can easily ...
0
votes
2answers
228 views

Forward searching with latex-suite

I am using the windows subsystem for Linux and recently installed vim latex (latex-suite). I was following the tutorial and typed :let g:Tex_CompileRule_dvi = 'latex -src-specials -interaction=...
1
vote
0answers
60 views

vim: disable greek letter mapping? [duplicate]

Anyone else find that trying to use `something in quotes' frustrating because `s is always mapped to \sigma Where is my mistake? 1) Shouldn't I be using (`quote') in the first place? 2) Is ...
1
vote
2answers
306 views

vim-latex templates last change dynamic

So I am using vim-latex suite and want the Last Change information to change dynamically with every edit/ save. It's found in the preamble if you're using one of the templates e.g % File: raid....
19
votes
4answers
5k 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 <++&...
19
votes
1answer
2k 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 ...
15
votes
2answers
5k 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
24
votes
3answers
8k 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 ...
6
votes
1answer
2k 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 ...
10
votes
1answer
2k 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: \documentclass{} ← ...
6
votes
1answer
3k 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 (...
2
votes
0answers
188 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 ...
4
votes
1answer
770 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 ...
1
vote
1answer
903 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 ...
3
votes
1answer
606 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 ...
7
votes
1answer
1k 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 ...
2
votes
1answer
885 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 ...