-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a$ and i$ not working when syntax highlighting is off #2248
Comments
That is to be expected -- if you disable (It's a common misconception that |
Ok, thanks. |
I'm not yet convinced though. The vim documentation says it's just highlighting. http://vimdoc.sourceforge.net/htmldoc/syntax.html
If it is really necessary to turn this on for |
Yes, but if you keep on reading, it'll tell you what that actually means.
I think that is just basic Vim knowledge (which, admittedly, is not a low bar)... |
@clason is right, but I can see how this is still unexpected for most users. Perhaps I should try and recognize if a user has syntax enabled during VimTeX initialization and add a warning unless the user also explicitly disables vimtex syntax? |
Personally, I think I would not need run-time warnings. I would rather have the warning in the documentation. You may consider adding the following to the end of the "Installation" section of your README file. (This is a rough draft, probably containing mistakes. Feel free to modify it as you will. I just thought I'd let you know the noob's point of view.)
|
Thanks! I've done this now with some changes. Note that I believe the default compiler is good for most people. I do NOT want most people to use the generic compiler. |
Well, I never used latexmk and I don't think I really need it. So the first thing I got when I installed the plugin was an error (and no output pdf). Naturally, I wanted to know what had been executed and what it had responded... |
|
Thanks for your suggestion! I will certainly set latexmk up when I have any trouble with invoking the compiler directly (when I start writing a book maybe). In my turn, I suggest you enhance your README just a little further. This would have saved me time if I had it.
|
No, sorry. The generic compiler is not good enough, and I don't want to address that too much. Your suggested setting will fail in many cases. E.g. The main idea is to rely on latexmk, because this will just work. Really. The generic compiler backend is useful in certain cases, but I don't want people to use it unless they know what they are doing. |
Maybe like this?
Sorry if I'm bothering you. |
No need to be sorry; I'm glad you're being insistant, as it forces me to think twice. My previous reply was short and may have come off more "aggressive" then I meant it - I was at work and did not have time to think too much.
This is better, thanks. I'll push a variant of this now. Let me know what you think! |
See: c3991f8 |
Thank you, surely, these explanations would have been useful for me, I only hope they will help other users too. It is not clear from the current version of README that the viewer will also work without configuration in most cases, unless the user wants forward search. But then, I think, users usually do want forward search, so they will have to configure the viewer anyway. So it's OK, I think. |
Description
When syntax highlighting is off, in normal mode,
da$
anddi$
produce either no effect or long error messages (a detailed example below); in visual mode,a$
andi$
behave the same way.Setting
:syntax on
makes everything work fine though!Maybe the problem is on my side, because I currently use a weird linux distro; on the other hand, everything else seems to work as it should do. I can't test it on another computer now.
The version info for the vim I actually use follows. (I tried building the most recent version of vim and observed the same problem.)
Steps to reproduce
vim -u minimal.vim minimal.tex
3Glda$
$hda$
Expected behavior
The first and the last copy of
$a$
deleted.Actual behavior
After step 2, nothing happens.
After step 3, a long error message (I attach it as a text file). It seems to happen when
da$
is typed inside of a formula which is at least 25th from the beginning (I am not really sure though).vimtex-error-message.txt
Do you use a latexmkrc file?
no
VimtexInfo
The text was updated successfully, but these errors were encountered: