Comments (5)
I've disabled all plugins except for VimTeX with no settings and can reproduce it.
…
The result is
texMathZoneX
However, it should have
texMathZoneTI
, shouldn't it?
Yes; in fact, VimTeX does not defined texMathZoneX
at all, so this clearly indicates that you did not properly load VimTeX.
To use powerful functions in VimTeX, I've put
markdown.vim
in~/.vim/plugged/vimtex/after/ftplugin
, and its part of content is shown below. …
Well, this is really not how you should use VimTeX. However, in your first text and in the steps to reproduce, you did not mention markdown. Let's focus on the pure tex related issue first and only after that consider the markdown problem.
Is it a bug or I've misunderstood something? Many thanks in advance!
It is not a bug; this is related to your configuration and is very likely a misconfiguration. However, as you did not provide a minimal example or information about how you load VimTeX, it is impossible to tell.
So, can you please either provide your full configuration, or provide a minimal example as explained in the issue template?
from vimtex.
It is not a bug; this is related to your configuration and is very likely a misconfiguration. However, as you did not provide a minimal example or information about how you load VimTeX, it is impossible to tell.
So, can you please either provide your full configuration, or provide a minimal example as explained in the issue template?
set nocompatible
filetype plugin indent on
syntax enable
call plug#begin("~/.vim/plugged")
Plug 'lervag/vimtex', { 'for': ['tex', 'markdown'] }
call plug#end()
Here's my minimal .vimrc
that can reproduce this issue (I use vim-plug by the way). VimTeX is on the latest commit.
from vimtex.
Don't specify filetypes! That is, remove the for
block:
call plug#begin("~/.vim/plugged")
Plug 'lervag/vimtex'
call plug#end()
I believe this may be the main cause of your issue.
from vimtex.
Thanks a lot! I didn't read README carefully and have never noticed the note mentioned in it. Sorry to bother you!
Note: Many plugin managers provide mechanisms to lazy load plugins. Please don't use this for VimTeX! VimTeX is already lazy loaded by virtue of being a filetype plugin and by using the autoload mechanisms. There is therefore nothing to gain by forcing VimTeX to lazily load through the plugin manager.
from vimtex.
That's fine; take it as a learning point - it is usually smart to read the docs :)
from vimtex.
Related Issues (20)
- Use new synctex interactive mode to speed up synctex HOT 5
- Toggle to revert changes made in issue 2401 HOT 2
- Mainfile detection fails when \input is in enumerate environment HOT 4
- l:file not defined in function vimtex#compiler#compile_selected(type) HOT 4
- Setup text argument in user-defined command HOT 3
- Compilation failed when using xelatex HOT 2
- Compilation fail with option "-c" HOT 10
- Can't open .tex files... sort of? HOT 3
- Zathura issues with finding Window ID HOT 2
- Disabling "latexmk is not executable" message on startup HOT 3
- Cannot create directory: file already exists error when compiling HOT 7
- Continuous mode for OpenBSD fails due to option HOT 8
- citekey: link to BibDesk HOT 49
- Concealing subscript letters stopped working HOT 4
- [help] Is there possible way for another plugin to get mainfile path that vimtex finds? HOT 1
- Viewer (evince) opening on top of neovim instance instead of new window HOT 1
- Support for nofile buffers (e.g. AirLatex) HOT 3
- inverse search not working WSL HOT 9
- Inline math environment not detected as text object HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vimtex.