Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [vim]

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

0
votes
0answers
13 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 ...
1
vote
1answer
24 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
15 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
45 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
119 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 ...
1
vote
0answers
63 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
24 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
28 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
1answer
248 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 ...
0
votes
0answers
57 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
1answer
34 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.
1
vote
0answers
47 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
1answer
178 views

How do I know if vim-latex is installed correctly?

I followed the very clear instructions How to install vim-latex?. I did not encounter any error while installing, but when I open a test file with vim test.tex the interface still looks like normal ...
6
votes
0answers
1k 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 ...
1
vote
1answer
253 views

Entering \ll command to compile using LaTeX suite plug-in to MacVim

LaTeX Suite Manual says that In order to compile a LaTeX file, simply press \ll while editing the file. I don't understand how I can enter this command. I tried switching to the Editor mode in ...
2
votes
1answer
219 views

Vim, latexmk and accented filenames

My very first question on StackExchange. I'm using GVim on windows, trying to compile a minimal tex file with accented characters, e.g. "é 3.tex". Inside gvim, with pdflatex, no problem, but there is ...
3
votes
1answer
107 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 ...
1
vote
0answers
70 views

Showing aux file after compiling

I am using latex-suite for vim. A recent problem I come into is, after compiling the tex file, the original window showing tex is replaced by the aux file. Is there a way to stop this behavior and ...
1
vote
1answer
144 views

Remapping keys while using vim-latex

I am using the plugin vim-latex/vim-latex. It's a fantastic plugin for sure. But I want some of my own mapping to be there. Say whenever I press 4 I want $$ in return with the cursor on the second $, ...
12
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,...
0
votes
0answers
81 views

Cannot do inverse search with vim's latex-suite and YAP

Though forward search works fine, something is going wrong with the inverse search. In YAP, the command line for inverse DVI search is set to be C:\Users\user\Vim\vim80\gvim.exe -c ":RemoteOpen +%l %...
3
votes
2answers
635 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?
3
votes
1answer
389 views

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
votes
1answer
72 views

what is “<++>” path used for? [duplicate]

My vim snippet appear <++> every time i i use tab. I want to use tab completion, yet the <++> doesn't make any sense. For instance, /title{<++>}. Is there a mapping feature in vim snippet i ...
1
vote
1answer
186 views

vim-LaTeX change current environment

I use vim-LaTeX-suite as my editor, and i really like it, However i would like to know how to change the environment around the courser an example follows: say you are in the following situation % ...
1
vote
1answer
208 views

vim and its latex plugin: compilation optimization

At the moment, using vim I have to first save with :w and then compile using \ll, moreover compilation displays all sort of trash and asks to press enter at the end; what I would like instead is that ...
4
votes
2answers
211 views

lstlisting: highlighting for vimscript

I would like to document some scripts written in vimscript. How can I do this with the listing package? I haven't found a supported language by listings for vimscript. Example to set with lstlisting: ...
1
vote
1answer
165 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 ...
2
votes
0answers
159 views

How to pass texify tex options?

TLDR: I need to pass -file-line-error-style option to texify. I don't know how :( I use vim-latex and I want to tweak it to use texify instead of pdflatex since this is the engine that TeXWorks uses. ...
1
vote
0answers
215 views

Macvim spell check not working with some latex files

I am using MacVim with Tex-suite. The spell checking works on main.tex, but doesn't work on other .tex files. Both the main.tex and other .tex files have filetype set to tex. Changing the filetype to ...
1
vote
0answers
35 views

Why does vim-latex sometimes insert <++>? [duplicate]

Intending to use latex-vim's autocompletion environment feature, I hit f5, typed in "definition" and was greeted with \begin{definition} \end{definition}<++> What does <++> mean?
1
vote
0answers
271 views

Why must I reopen my pdf viewer to see document additions? [closed]

I'm using a mac with latex-suite. Everything is working well, except that after hitting \ls or \lv to view my pdf output, if I made additional changes to my tex file, I must first close the pdf before ...
2
votes
1answer
1k views

Best (neo)vim setup for managing multiple Latex projects?

I am in the process of switching from Sublime to neoVIM+vimtex for writing (pdf)latex documents. In Sublime I have currently simply added each folder with a Latex document with "Add folder to project....
1
vote
1answer
143 views

How to set automatic folding of newcommands and usepackages in vim?

How do I set automatic folding of packages outside of document and new commands inside of documents? If I use {{{ }}} marker around newcommand it ignores the command and says undefined control ...
0
votes
0answers
105 views

vim iskeyword for latex

I am using vim. I also asked this question on vi-vim SX. I hope this question is acceptable for TeX-SX. Context Currently, when I set ft=tex, my set isk? reads iskeyword=@,48-57,_,192-255 that is, ...
0
votes
2answers
212 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
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 ...
2
votes
1answer
184 views

Vim Latex ''compacts'' Tikz pictures during compile

Using vim with latex suite on two different computers, on one it's fine, but on the other my tikz pictures ''colapses'' (all text is put to the center of the figure, nothing is drawn) The same pc can ...
4
votes
1answer
1k views

LaTeX-Suite installation not working

I've recently installed Vim for Windows 10. After this I have installed latex-suite files in the $HOME/vimfiles/bundle directory (I'm using pathogen). I've configured my _vimrcfile as following: ...
0
votes
0answers
81 views

vim-latex suit forward search

I am trying to enable forward search in vim-latex. Since it is not working, I tried a vanilla .vimrc: "Vundle Plugins" {{{ filetype off set rtp+=~/.vim/bundle/Vundle.vim/ call vundle#begin() Plugin '...
2
votes
0answers
72 views

Summon Latex-Suite \cite autocompletion in macro

Latex-Suite lets me autocomplete keys in \cite{} (and other similar commands like \parencite{} ou \citet{}) with F9. This is useful, but I'm using the csquotes package which offers commands like \...
0
votes
1answer
528 views

Vim + latex-suite + xelatex ,can not compile Simplified Chinese

According to the instructions on this site: http://vim-latex.sourceforge.net/index.php?subject=download .I have installed gvim80, vim-latex-1.9.0 on Windows10.The vim+latex-suite can compile pure ...
1
vote
1answer
127 views

Erroneous TeX files with epslatex?

Upon including the TeX (and eps) file generated from Gnuplot as given in: http://www.gnuplotting.org/output-terminals/#epslatex I get the following errors with Vim's Syntastic plugin that uses ...
4
votes
1answer
273 views

How can I find invisible differences?

I use Linux Mint with gvim_7.3.429 in order to edit my TeX files. Recently I got the following result when comparing two files: goswin@mycomp diff oktext.tex bugtext.tex 1,7c1,7 < \documentclass[...
1
vote
0answers
298 views

how to configure forward and inverse search with dviout and vim

I installed TexLive, the entire 4GB+ and am using (learning vim as well going along) Latex-Suite with Vim for creating my tex files. The dvi viewer that came with TexLive is dviout.This is probably a ...
1
vote
1answer
356 views

Configure vim-latex suite to use treat .tikz files as ordinary .tex files

I use file externalization with tikz, so I usually put the tikzpicture environments each in a separate file with extension .tikz. When I open such files with Vim, the syntax is not highlighted, which ...
3
votes
1answer
596 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 ...
0
votes
1answer
501 views

How to get vim-latex's \cite completion to pick up the .bib file from the directory below?

I'm using the Classic Thesis Latex template which provides the Chapters in a separate folder in relation to the 'root' file and the .bib file. When editing the chapters in Vim I would like to use the ...
6
votes
1answer
626 views

Turn off Vim spellcheck in custom region

I have the following definitions in a .tex file preamble: \newcommand{\beq}{\begin{eqnarray}} \newcommand{\eeq}{\end{eqnarray}} If I then use \beq and \eeq to define an equation array region, spell ...
4
votes
2answers
446 views

How can I quickly type a LaTeX accent in vim?

I want to write some text in Spanish in which accents are used frequently, such as ó for which I have to write \'{o}. I have seen that in vimtex they have defined for example `a to convert into \...