Coder Social home page Coder Social logo

Comments (5)

lervag avatar lervag commented on June 12, 2024

I've disabled all plugins except for VimTeX with no settings and can reproduce it.

  1. 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.

pilgrimlyieu avatar pilgrimlyieu commented on June 12, 2024

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.

lervag avatar lervag commented on June 12, 2024

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.

pilgrimlyieu avatar pilgrimlyieu commented on June 12, 2024

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.

lervag avatar lervag commented on June 12, 2024

That's fine; take it as a learning point - it is usually smart to read the docs :)

from vimtex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.