Autocompile and Preview LaTeX in Vim

Sdílet
Vložit
  • čas přidán 28. 04. 2018
  • I always find plugins to be bloat for just auto-compiling and previewing my linguistics work in Vim, so this is a much more lightweight alternative. Cheers!
  • Věda a technologie

Komentáře • 43

  • @TheVikingProgrammer
    @TheVikingProgrammer  Před 4 lety +2

    So a fellow Elder Scrolls CZcamsr is in a bit of financial pickle! Be sure to check out Tamrielle here:
    czcams.com/channels/3PZUQZQPK4kkIOe6Plrruw.html
    Patreon: www.patreon.com/tamrielle
    Ko-Fi:
    ko-fi.com/tamrielle

  • @larry_the
    @larry_the Před 3 lety +1

    Very cool video. Much simpler than having to deal with plugins that come with 30 extra features.

  • @JackPillawa
    @JackPillawa Před 5 lety +4

    Thanks dude, exactly what i have looking for

    • @TheVikingProgrammer
      @TheVikingProgrammer  Před 5 lety +1

      You're welcome, I had been looking for this for ages myself, so I just had a friend help me with sed, and we got everything up and running!

  • @salteax.6967
    @salteax.6967 Před 3 lety +1

    Very usefull video, thanks :)

  • @eoghainlebioda1396
    @eoghainlebioda1396 Před 3 lety

    I Have a quick question about this. I have it working mostly using mupdf and both commands work but shift s opens another instance of mupdf rather than just updating the current window. Can anyone help with this?

  • @henrytwiss6334
    @henrytwiss6334 Před 5 lety +1

    I have a small issue. The first command works, but the second command Shift+S doesn't open the compiled pdf in a new window. I typed everything letter for letter and have mupdf installed on my system. Any reason this wouldn't work? I even tried Andy's alternative with Shift+S being defined as :! mupdf-open %

  • @Bored_Trumpet
    @Bored_Trumpet Před 4 měsíci

    I managed to at least map to compile latex on windows terminal via cmd.exe. But I had trouble getting replicating the same result of previewing the latex like you did by using sumatra. Don't know how to do the equivalent of calling the filename, substituting text, then having that put in front of !sumatra.

  • @yash1152
    @yash1152 Před 2 lety

    3:17 does this setup has live preview? or not?

  • @hixann
    @hixann Před 6 lety +3

    this is quality content, Trev!
    have you worked with Praat before? if yes, please do a video on it.

  • @mikuhatsunegoshujin
    @mikuhatsunegoshujin Před 6 lety +2

    Happy May day.

  • @yavinfour3940
    @yavinfour3940 Před 4 lety

    Great video! But this is not working for me at all. I can get Shift-I to work, but not Shift-S. No PDF window opens for me. I also cannot find 'pdflatex' on my system, so I don't know what PATH to configure for it. What do I need to have already installed on my system in order to get the PDF window to appear? I think I'm missing something. Thanks Trev!

    • @TheVikingProgrammer
      @TheVikingProgrammer  Před 4 lety

      The prerequisites are that you have mupdf installed along with pdflatex.

  • @limapedro
    @limapedro Před 4 lety +1

    Hey there,
    The second command does not work for me. I also tried putting :! mupdf %

    • @TheVikingProgrammer
      @TheVikingProgrammer  Před 4 lety

      You can use bash's & to make the command run in the backround, allowing you to work with the pdf still open. Cheers!

    • @lithraal7057
      @lithraal7057 Před 4 lety +4

      I personally use
      map I :! pdflatex %
      map S :! zathura %

    • @lithraal7057
      @lithraal7057 Před 4 lety

      By the way, maybe you'd know. Whenever I source .vimrc, with the command "source ~/.vimrc" - it says "syntax error near unexpected token

    • @larry_the
      @larry_the Před 3 lety

      @@lithraal7057 thank you

  • @gregoririgakis7868
    @gregoririgakis7868 Před 4 lety

    Hey great job to start! Now this is probably outside the scope of the video, but for some reason vim for me returns ! Undefined control sequence and I have no idea why. I am working on windows 10. The command prompt for vimrun.exe opens normally and pdflatex runs but it doesn't do much else. Any thoughts as to why?

    • @blueoystercult1197
      @blueoystercult1197 Před 3 lety

      VIM on windows is a nightmare, try dual booting a linux distribution, ubuntu is very user friendly.

    • @gregoririgakis7868
      @gregoririgakis7868 Před 3 lety

      It's been a long while since this comment. I ended up on linux after all and just removed windows all together. Started with Ubuntu and moved to Manjaro later. Thanks for the tip though

    • @blueoystercult1197
      @blueoystercult1197 Před 3 lety +1

      @@gregoririgakis7868
      Literally on this journey now. Have dual booted ubuntu with windows and if I didnt need Microsoft office for univeristy I would delete my windows partition.

    • @gregoririgakis7868
      @gregoririgakis7868 Před 3 lety

      Well you can always just shift to open office or libre office. They're really good right now, although you do sacrifice the ability to use vba macros

    • @blueoystercult1197
      @blueoystercult1197 Před 3 lety

      @@gregoririgakis7868
      Can they open the Microsoft office files though?

  • @peakhead7087
    @peakhead7087 Před 4 lety

    Every time I press Shift + I. It says insert, and I can edit the text. Can anyone help me?

    • @nighthaste9763
      @nighthaste9763 Před 3 lety

      Did you ever figure it out? I'm having the same issue.

    • @nighthaste9763
      @nighthaste9763 Před 3 lety

      @@Sebi20070 Mapping different keys hasn't changed anything unfortunately

  • @chriscrocker438
    @chriscrocker438 Před 3 lety

    Are you and Luke Smith the same person !?

  • @56z41
    @56z41 Před 4 lety

    The second line could just be
    map S mupdf -x11 %:r.pdf & disown

  • @twl148
    @twl148 Před 10 měsíci

    hope you changed your smoke alarm battery

  • @martinmaartensson
    @martinmaartensson Před 5 lety +1

    It doesnt work for me. Tells me that pdflatex is not a vim command.

    • @simongratz9696
      @simongratz9696 Před 5 lety +1

      did you put the !-sign infront of it? like :!pdflatex % ... works in my case, dont know if I installed anything additionally along the way though

    • @martinmaartensson
      @martinmaartensson Před 5 lety

      I didnt realize thad i have to type \ before the command :D thank you for your reply @@simongratz9696

    • @TheVikingProgrammer
      @TheVikingProgrammer  Před 5 lety

      Simon beat me to it, though yeah, I'm using Bash(my shell, any shell works) and you use ! in vim. Cheers guys!

  • @jesterflint9404
    @jesterflint9404 Před 3 lety +1

    Wow, wallpaper and thumbnails like Luke Smith...

  • @yash1152
    @yash1152 Před rokem

    dislike for the oh so small font size - no offense