Skip to content
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

":make" doesn't work as $* is no valid variable in vim #163

Open
mowgli opened this issue Aug 1, 2019 · 2 comments
Open

":make" doesn't work as $* is no valid variable in vim #163

mowgli opened this issue Aug 1, 2019 · 2 comments

Comments

@mowgli
Copy link

mowgli commented Aug 1, 2019

This bug is similar to #157.

\ll is working fine. However, I am used to type :make and usually my fingers are faster than my brain.

But the makeprg is set wrong:

:verbose set makeprg?
  makeprg=pdflatex -synctex=1 -interaction=nonstopmode -file-line-error-style $*
        Zuletzt gesetzt in ~/.vim/bundle/vim-latex/ftplugin/latex-suite/compiler.vim Zeile 37

The variable $* is not valid in vim (It is in Makefile but not in vim).

Shouldn't that set to pdflatex -synctex=1 -interaction=nonstopmode -file-line-error-style %?

@mowgli
Copy link
Author

mowgli commented Aug 1, 2019

Note that there are many such settings in ftplugin/latex-suite/texrc.

@gerw
Copy link
Contributor

gerw commented Aug 1, 2019

I never used :make myself for tex files and I also do not use vim-latex to compile my documents.

By looking at the code, it seems that the intention is to call :make filename and then, $* is replaced by filename, see, e.g., https://github.com/vim-latex/vim-latex/blob/master/ftplugin/latex-suite/compiler.vim#L146.

Hence, making :make work is not as simple as changing $* to %. Maybe the simplest workaround for you is to change your setting of makeprg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants