Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

# Tag Info

### What are the differences between LaTeX plugins?

I will not provide an in-depth comparison, as I only have limited experience with the different plugins. I know a couple of plugins well (LaTeX-Box and LaTeX-Suite), and I know one plugin very well, ...
• 8,690
Accepted

### How do I get Vim to compile my .tex file when executing :w?

Don't be so inefficient! Your time is valuable. Use the vimtex plugin offered by @lervag: see here. You can control all of the plugins you install by using Vundle or any similar plugin manager (vim-...

### What are the differences between LaTeX plugins?

I can't do comparison, as Vim-LaTeX is the only LaTeX plugin I've used. I have been using Vim-LaTeX for almost a year. So I will talk about Vim-LaTeX alone. There are many features present in Vim-...
• 383
Accepted

### Filetype that LaTeX should be

When there's not enough information to decide otherwise, 'filetype' is set to the most basic -- plaintex. Your existing file must have had enough content for the detection to determine that it was ...
• 10.3k

### How can I treat LaTeX quotes as a text object?

I don't know LaTeX but this seems to work: vnoremap iq :<C-U>silent! normal! t'vT<CR> omap iq :normal viq<CR> I based this off the information over here: http://vim.wikia.com/wiki/...
• 631
Accepted

• 8,690
Accepted

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

First: This is not related to vim-lexical. Syntax rules define where spell checking should be done, and so the current behaviour is defined by the internal syntax plugin for LaTeX. The default syntax ...
• 8,690
Accepted

### Compiling whole LaTeX projects

I would say that you are approaching this the wrong way. If you want to use a very minimalistic solution without any plugins, I would claim that you should not have anything in your vimrc file for ...
• 8,690
Accepted

### Indentation in Latex within a list after an equation

The reason this is happening is because the indentexpr [1] prefers text to be indented inside \items. You can see this by pressing gg=G. This is what it considers correct indenting: \begin{document}...
• 12.6k

### Syntax of :endif in if-statements

Rather than figuring out what's going on with your existing mappings, it's easier and more readable just to use a function, instead: nnoremap <F5> :call <SID>compile_latex()<CR> ...
• 27.4k
Accepted

### Trigger reindentation after snippet has expanded to word in 'indentkeys'

You can manually fix the indent by typing CTRL-F (this is documented at :help indentkeys-format). Thus, an autonomous solution would be to issue this key-press after snippet expansion. global !p def ...
• 12.6k
Accepted

### Unable to conditionally test for presence of a plugin command & invoke it

The problem is, your vimrc file is executed before any plugins are loaded. You can check the order of what source files are loaded by issueing the :scriptnames command. The usual way to fix this ...
• 22.9k
Accepted

### Silence command but not its output

As Ben said in the comments prompting the command used before its result is a built-in behavior that you can not change without modifying Vim's source code. However a possible workaround is to use :h ...
• 45.9k