Questions tagged [plugin-vimtex]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
34 views

Vimtex: `latexmk` compiler gives “no file name specified” error even after a new buffer is written to a file

When I open a new instance of vim without any 'filename' argument and write some LaTeX code, I cannot just compile it to pdf with latexmk, because it needs a file to compile from. However, even after ...
0
votes
0answers
55 views

How to get zathura to appear inside terminal and autocompile

I'm pretty new to vim and linux in general. I've been wanting to use vim for writing my math latex notes in the same fashion as pictured below. Whereas currently I am only able to accomplish the ...
0
votes
1answer
65 views

xelatex as default latex engine

I am new to vim and I am currently working with the default configuration of vimtex other than setting my viewer to skim. Here is what \li produces with my current vimtex configuration (used a minimal ...
1
vote
0answers
28 views

vimtex-compiler-ss does not open quickfix

Due to my muscle memory(aquired from vim-latex and other code compilation, so <F10> is universal compiler for me), I prefer singleshot calculation. I do have given a shot to \ll and then just ...
0
votes
0answers
40 views

How to write a fast auto completion for font names?

I am new to Vim. I recently installed the YouCompleteme (YCM) plugin, and realized it would be great if I could complete font-names. Let's say I type fn:, it should bring up a popup menu to help me ...
3
votes
1answer
127 views

Contextual Snippets in UltiSnips not working

I have been using vimtex with UltiSnips for a while on Linux platform and it has been working just fine. Recently, I switched to MacBook Air M1 for the same and installed the above mentioned plugins ...
1
vote
1answer
65 views

Is it possible to setup vim to use vimtex for Rmd files?

I need to write Rmd files, but I can't imagine life without vimtex. Is there a way that I can use vimtex with Rmd files? Ideally, I would also like to keep the syntax highlighting that I have for Rmd ...
1
vote
1answer
39 views

Latex: smaller Greek letters in math mode

In init.vim, I use vimtex and text-conceal, but it seems Greek letters and math operators look smaller. Here is an example: But when the cursor moves away, the math mode looks like this: . From this, ...
0
votes
1answer
28 views

Display the same color for all characters in a math section

In a tex file, almost all the characters inside delimiters like $...$ or \[...\] have the same color, but there are some characters, like = (and possibly others) which have a different color. I would ...
0
votes
2answers
273 views

vimtex conceal options and character substitution not working on Windows

I wanted to write and edit a .tex document as fast as possible, so I followed this guide, but I can't get vimtex to work properly. I would like to have Vim hide characters like $,\[ and replace some ...
0
votes
0answers
26 views

Eliminate highlighting of rendered code in vimtex

I am trying out vimtex and I think it is great but I am annoyed because the rendered code looks highlited or selected. I attach a picture that shows what I am talking about. At first I thouhgh it may ...
0
votes
0answers
66 views

Vimtex in Spacevim: conceal persists even on cursor line

I am new to (space)vim and I tried to make vimtex work in spacevim. Following the documentation, I added the layer: [[layers]] name = 'lang#latex' in init.toml. Opening a .tex document then the math ...
0
votes
1answer
45 views

Manually disable scripts(/plugins) during a session?

Sorry if this is a noob question(I'm new to configuring vim) but I was wondering if it is possible to disable startup scripts manually during a Vim session. I am aware of the :scriptnames command ...
1
vote
1answer
31 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 ...
0
votes
1answer
133 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 ...
1
vote
0answers
57 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 ...
3
votes
1answer
81 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 ...
0
votes
0answers
34 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 ...
1
vote
1answer
25 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:...
0
votes
1answer
69 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
0answers
46 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 ...
1
vote
1answer
120 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 \...
2
votes
2answers
150 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
68 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 ...
1
vote
1answer
26 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
0answers
16 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
1answer
54 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 ...
3
votes
2answers
132 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$ ...
1
vote
1answer
200 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 ...
3
votes
0answers
307 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}} \...
0
votes
0answers
564 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('~...
1
vote
0answers
42 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 ...
0
votes
0answers
339 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 ...
0
votes
1answer
74 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' ...
4
votes
2answers
853 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 ...
0
votes
1answer
110 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 ...
3
votes
1answer
109 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} , \...
7
votes
1answer
217 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 ) ...
1
vote
0answers
287 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
1answer
996 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 ...
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 ...
3
votes
2answers
2k 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
94 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 ...
3
votes
1answer
275 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 ...
0
votes
1answer
85 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 ...
3
votes
2answers
380 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
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 ...
6
votes
1answer
337 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{...
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.
2
votes
0answers
545 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 ...