Questions tagged [plugin-vimtex]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11
votes
2answers
1k views

How to configure spell to ignore some environments in LaTeX

Is there a way to tell vim not to spell-check part of a latex document? For instance, code block using the minted environment or URLs in \url{}? (I'm not sure it's relevant for spell checking but I'm ...
7
votes
1answer
182 views

Matching interval brackets

I'm using vim to edit LaTeX code, and I'm often writing intervals like (a,b] but this messes with other vim features. For instance, Jumping with %: if I have something like \phi((a,b]), the final ) ...
6
votes
1answer
303 views

How do I spellcheck TeX files using vim-lexical, skipping some command arguments but not others?

I use the vimtex plugin for TeX editing and vim-lexical for spell-checking. This works generally fine, but there are several commands vim-lexical tries to spellcheck. For example, in \includepdf{...
5
votes
1answer
151 views

Text formatting CVS-friendly

I have seen this very interesting article: http://dustycloud.org/blog/vcs-friendly-patchable-document-line-wrapping/ --- basically it is a suggestion for hard-breaking lines of text (for example, in ...
4
votes
1answer
1k views

Folding slow with vimtex

Automatic folding with the vimtex plugin is unbearably slow. Is there anything I can do to speed this up? I tried installing the fastfold plugin but that did nothing I could notice.
4
votes
2answers
600 views

How to force vimtex to display \textbf and \textit in insert/normal mode? [duplicate]

When I add \textbf{} or \textit{} before a word in vimtex the terminal shows the word but strangely hides the commands. I can only see them in the visual mode (see pictures below). Is there a way to ...
4
votes
1answer
3k views

installing vimtex?

I am trying to install vimtex, and I am not how to do that. What plugin manager should I use? How do I combine it with "vim-surround"? "snipmate"? I went through the readme file, but could not ...
4
votes
0answers
92 views

Latex plugin for Vim that supports files organized in multiple directories

I have a multiple file/folder project that looks like the following. ├── 0_Preamble │   ├── 01_TitlePage.tex │   ├── 02_TitleBack.tex │   ├── 03_Dedication.tex │   ├── 0_Preamble.tex ├── 1_Theory │  ...
3
votes
2answers
364 views

How to enter commands starting with i

vimtex lists some commands like ie to be entered in mode nxo. How do I do that? What is mode nxo? (Usually i brings me into insert mode, and e then just inserts an e.)
3
votes
2answers
112 views

How to remap ci$

I am using the plugin vimtex. It offers the functionality (from the introduction of its documentation) Text objects ic ac Commands id ad Delimiters ie ae LaTeX environments i$ a$ ...
3
votes
1answer
246 views

How to remap <Plug>vimtex#delim#close()<CR>?

I found that to press ]] to close a matching bracket by means of <Plug>(vimtex-delim-close) a little inconvenient, as I am using a French keyboard and have to press two keys to type ]. So I ...
3
votes
1answer
57 views

Disabling `kana/vim-textobj-entire` by filetype autocommand

kana/vim-textobj-entire creates text-obejcts ae and ie which stand for the entire buffer. But in lervag/vimtex ae and ie stand for an environment in a .tex file. vimtex's ae and ie mappings are much ...
3
votes
1answer
76 views

Switching back and forth between two text layout conventions of input to LaTeX

While using git and other versioning systems, it is very useful that text lines occupy no more than (say) 80 characters. It is also more comfortable to edit text with vi if lines are note excessively ...
3
votes
0answers
230 views

Vimtex conceal doesn't recognize new command math environment

I recently added the vimtex plugin which includes a conceal feature which I really like; however, I found it doesn't work in custom math environments such as \newcommand{\beq}{\begin{equation}} \...
2
votes
1answer
86 views

Unable to set iskeyword for colon ( : ) character

I am using vim to edit LaTeX files. Throughout the text, there are labels to equations, tables etc. for which an accepted convention among TeX writers is the following \label{eq:massenergy} , \...
2
votes
2answers
1k views

Vim not starting server

Context: I'm trying to use vim's clientserver mode on Mac OS X, using iterm2. I've compiled vim with clientserver via brew, and I've got XQuartz installed also. This is to allow continuous ...
2
votes
2answers
114 views

How to quickly jump between inline equations in vimtex?

Suppose I have a line of LaTeX code as follows We have two equations $E=mc^2$ and $F=ma$. How do I quickly jump between inline math equations? Let's say I'm editing the first equation $E=mc^2$, how ...
2
votes
1answer
55 views

Using Mathematica in Vim produces errors when printing in TeXForm (double backslash, “ b'-/n' ”)

I've been trying to integrate Mathematica with my Vimtex set-up, inspired by this article: https://castel.dev/post/lecture-notes-1/ The basic idea is to use UltiSnips to run an operation in Wolfram ...
2
votes
1answer
1k views

LaTeX: Ultisnips

I'm new to Vim and setting up LaTeX with vimtex. Now, I am looking for a Snippet-Manager and decided to give UltiSnips a try. It seems to be very handy. But it doesn't come with a lot snippets (honza/...
2
votes
1answer
90 views

Way to merge edits in a shared file during simultaneous editing

Currently, a colleague and I are working on a joint project written in LaTeX. I am using a plugin (VimTeX) which, in addition to calling a compiler tool (upon saving the file) offers some bindings for ...
2
votes
0answers
522 views

Trying to get a particular SuperTab behavior with snippets and omnicomplete

I'm trying to get SuperTab to work a particular way with .tex files. I am also using the vimtex plugin as well as snipMate. The behavior I want is the following. In most text, I want the main ...
1
vote
1answer
145 views

How to fix Leader Key Beep in Vim?

I cannot get the leader key working in vim. I have been troubleshooting for quite some time. Stuff I did already: Mapping leader key to another key :PlugInstall --> Already Installed x Plugin ...
1
vote
1answer
22 views

Recognizing the right expression to complete in insert mode

When one triggers a completion, vim guesses what was the expression (behind the cursor) that you want to complete. I don't fully understand the logic, but it seems that it assumes that the expression ...
1
vote
1answer
774 views

Vimtex commands only working on main file

Hi I am trying out vimtex on a multi-file project, and so far I was liking it a lot. However, I just found out that vimtex commands (\lv, \lt, \li, etc) work correctly when used while editing the main ...
1
vote
1answer
25 views

Vimtex citation movement bindings

By default <c-x><c-o> opens all citations/references in vimtex, then pressing tab goes over all citations/references backwards. How do I set plugins that make tab go forward? I tried but ...
1
vote
1answer
14 views

UltiSnips not substituting text properly

I am trying to define a snippet which substitutes text in multiple places. As a trivial example see the following which works for me : snippet abc "Testing" bmA \begin{${1:text_here}} $0 \end{${1:...
1
vote
0answers
29 views

Conceal with the highlighting of matching begin/end latex environment

I want to use vim conceal feature with the highlighting of matching begin/end latex environment (vimtex plugin). When I use the following code syn match texStatement '\\begin{itemize}' contained ...
1
vote
1answer
58 views

Concealing the code for `braket` package for LaTeX with vimtex + `tex-conceal`

I am using vimtex with latexmk and using conceal setting provided by vim and extending it with an additional plug-in : KeitaNakamura/tex-conceal.vim. Additionally, I use a package braket to encode \...
1
vote
0answers
15 views

TeX file, search outside math

Well, the question is clear. I want to search only on text that is not inside \[ \] or $ $ . Is there some readymade code to do so? Thanks.
1
vote
0answers
36 views

custom syntax hilighting lost on single LaTeX file

I use vimtex plugin for writing tex documents in vim8. I added custom hilight for sections in my .vimrc like so: autocmd FileType tex :syntax match texSectioning "\\section.*" The texSectioning is ...
1
vote
0answers
266 views

Quickfix list displays each line of log file

I'm trying vimtex. Probably I haven't read the docs well enough, but in my system (linux ubuntu 14.04.4 LTS, gvim 7.4) the quickfix list is populated with every single line of the log file when ...
1
vote
0answers
1k views

Tips for using vimtex? [closed]

I am a new user to vimtex. Here are some requests for tips. I hear that it has "make on write" feature. How do I enable it to use my flags to makelatex, so that it uses e.g., lualatex. Which ...
0
votes
1answer
44 views

How to set a command as a file type specific autocommand

I would like the :Toc command to call :Voom in R markdown files and :VimtexTocOpen in latex files. First try: au BufRead,BufNewFile *.Rmd command! Toc Voom au BufRead,BufNewFile *.tex command! Toc ...
0
votes
1answer
32 views

Indentation is slow in vimtex

If you try to indent a moderate size .tex file (~ 3,000 words/500 lines) using the normal mode command gg=G, vimtex seems to take some time. However LaTeX-Box seems to indent faster. I didn't ...
0
votes
1answer
329 views

What's the purpose of F7 in vimtex? How is it used/ [closed]

VIMTEX How do you enable/use the F7 key mentioned in the documentation? :map <F7> is empty and provides no clue. EDIT: In response to the comments below. I cannot figure out what F7 is designed ...
0
votes
1answer
43 views

Surround on tex files

I have both vimtex and surround plugins installed(and ultisnip if matters). When doing surround in visual mode (using S) on a tex file, and when I press \ next I get immediately \begin. I am not sure ...
0
votes
1answer
56 views

LaTeX indent for \iff error in vim

With the minimal vimrc (with vimtex plugin): set nocp filetype plugin indent on syntax on set st=2 set acd set wildmenu set wildmode=longest,list,full let $USRPLUGD=$HOME.'\vimfiles\myvim\plugged' ...
0
votes
1answer
68 views

Disable highlighting for tex files with texvim

I want to use vimtex and enable highlighting for all filetypes, except tex files. For tex files I explicitly want to disable highlighting. How could I do that? Important: The solution should allow ...
0
votes
1answer
82 views

How to install vimtex.txt helpfile properly?

I'm using pathogen (from the Ubuntu 16.04 vim-pathogen package) and a git clone of vimtex in ~/.vim/bundle/vimtex/. Now :help vimtex does not work. I can read ~/.vim/bundle/vimtex/doc/vimtex.txt, but ...
0
votes
0answers
28 views

Automatic preview with vimtex

Is it possible to compile and open the pdf file on write? Normally I would open the pdf file with Zathura, edit the .tex files in vim and use :VimtexCompile. However, I would like to compile only on ...
0
votes
0answers
29 views

GVim extremely slow with plugins for long docs

I am using gvim with vimtex (this) with UltiSnips (this) and with conceallevel set to 2. I use the above set-up to write my LaTeX documents. In general, this is slow but if my document is large then ...
0
votes
0answers
413 views

UltiSnips: snippets not expanding

This is a noob question. I just installed UltiSnip to make use of the TeX snippets. Here is the relevant part of my init.vim: " Specify a directory for plugins (powered by vim-plug) call plug#begin('~...
0
votes
0answers
271 views

<localleader> not working in .tex files, but working for the other filetypes

I use vimtex, latexmk and neovim in order to edit .tex files in Vim, but for some reason my local leader does not work in .tex files, though the leader works and the local leader works for other ...