GithubHelp home page GithubHelp logo

windows support about vimtex HOT 6 CLOSED

lervag avatar lervag commented on May 18, 2024
windows support

from vimtex.

Comments (6)

lervag avatar lervag commented on May 18, 2024

I think the only thing missing for Windows support are the functions that make external calls, that is, the latexmk-functions and the view-function. I think the structure would be something like what you suggest. I hope to get some spare time soon to implement this.

As for your other suggestion: The reason I decided not to define any commands is simply that I never used the commands, I only used the mappings. And it is trivial to define both mappings and commands when the functions are available. For example, you may put in your vimrc:

command LatexView :call latex#view()<cr>
cnoreabbrev H <c-r>=getcmdpos() == 1 && getcmdtype() == ":" ? "LatexView" : "Lv"<cr>

I might consider adding some common commands, but I am not convinced that it is necessary or more convenient than just defining the commands that one need oneself. If you want to continue this discussion, I propose that you open a separate issue where we can discuss this.

PS! At the current time, the view function does not allow arguments as you have implemented for LaTeX-Box.

from vimtex.

petobens avatar petobens commented on May 18, 2024

Can you considering adding something similar to the code in this comment to this line in order to enable bib completion on windows?
Thanks!

from vimtex.

lervag avatar lervag commented on May 18, 2024

@petobens I am not sure if that same fix is necessary here. I've managed the file names in a different and much more sensible way, even though it might not be correct for windows. Could you open a separate issue for this and explain what is wrong.

from vimtex.

lervag avatar lervag commented on May 18, 2024

I've just opened a couple of new issues to separate the different issues discussed in this thread.

#18 - Make latexmk bindings work for windows
#19 - Make latex#view() work for windows
#20 - Make bib completion work on windows

As I have explained earlier, I do not have windows myself, so it is crucial that other people (@petobens @EPNGH ++) test my code, suggest changes, and report bugs. I am also happy if anyone wants to contribute with pull requests.

from vimtex.

Konfekt avatar Konfekt commented on May 18, 2024

The creation of commands such as

command LatexView :call latex#view()<cr>

was best practice suggestion I copied from Tpope at http://www.reddit.com/r/vim/comments/267vrv/i_am_tim_pope_crafter_of_plugins_ama/chooack.

For example, fugitive defines Gstatus, Gblame.... How about Lview, Lclear!,... ? Then :L<Tab> would remind us of the possible vim-latex commands.

from vimtex.

lervag avatar lervag commented on May 18, 2024

@EPNGH Please continue this discussion here.

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.