Coder Social home page Coder Social logo

Comments (7)

lervag avatar lervag commented on June 12, 2024

With this minimal vimrc file, VimTeX is not loaded. Please update the minimal config or clarify how you've setup things so that VimTeX gets loaded.

from vimtex.

loximann avatar loximann commented on June 12, 2024

Ah, sorry. I have VimTex in my ~/.vim/pack/mypacks/start folder. As you can see I can execute :VimtexInfo.

from vimtex.

lervag avatar lervag commented on June 12, 2024

Ah, sorry. I have VimTex in my ~/.vim/pack/mypacks/start folder. As you can see I can execute :VimtexInfo.

Ok. Do you have other plugins installed in this manner?

To exclude the possibility of a plugin conflict, can you use this adjusted minimal vimrc:

set nocompatible
set runtimepath^=~/.vim/pack/mypacks/start/vimtex
set runtimepath+=~/.vim/pack/mypacks/start/vimtex/after
filetype plugin on
syntax enable

And then vim --clean -u minimal.vim minimal.tex to start. The --clean should ensure that other packs are not loaded; see :help --clean.

from vimtex.

loximann avatar loximann commented on June 12, 2024

That works, so it has to be a plugin conflict. (My apologies: for testing I used a pack directory which contained only VimTex).
With the additional paths, vim -u minimal.vim minimal.tex also works.

How can I troubleshoot this? I have no idea how to start looking for the culprit.

from vimtex.

lervag avatar lervag commented on June 12, 2024

Given your original minimal config from the first post:

  1. Open a tex file.
  2. What is the result of :omap $?
  3. What is the result of :scriptnames?

from vimtex.

loximann avatar loximann commented on June 12, 2024
  1. "No mapping found"
  2. THIS!
[...]
>> 93: ~/.vim/after/ftplugin/tex.vim
>> 94: ~/.vim/syntax/tex.vim
[...]

Apparently, I have had these laying around since... Forever. Removing those fixes the issue.

Thank you so much for your patience! Was there a troubleshooting guide anywhere? I could not find the :scriptnames command, which I know I will use again in the future.

(And thanks for vimtex. It's a godsend <3)

from vimtex.

lervag avatar lervag commented on June 12, 2024
  1. THIS!
[...]
>> 93: ~/.vim/after/ftplugin/tex.vim
>> 94: ~/.vim/syntax/tex.vim
[...]

Apparently, I have had these laying around since... Forever. Removing those fixes the issue.

Great, glad to hear you figured it out!

Thank you so much for your patience! Was there a troubleshooting guide anywhere? I could not find the :scriptnames command, which I know I will use again in the future.

Sorry, I don't really know any good guides that teach you how to troubleshoot like this. I've learned it through experience.

You do find information about it in the docs, of course, but it is not mentioned in the user manual (:help usr_01).

(And thanks for vimtex. It's a godsend <3)

Thanks! <3

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.