Getting Started with VIM as a Python Editor

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 36

  • @JousefM
    @JousefM 2 роки тому +8

    Long break Phil, glad to see you back in action. Hope you're doing great mate!

  • @markadyash
    @markadyash 2 роки тому +4

    Hi its been long seeing you Phil
    if possible can you make frequent content on RL

  • @zakariaabderrahmanesadelao3048

    hello Sir! just subbed, seems like you have got a lot of knowledge to share. We appreciate that.

  • @TonyGonzales
    @TonyGonzales Рік тому +3

    Very helpful for those of us jumping into the deep end, better to learn something once.

  • @limitless1692
    @limitless1692 Рік тому +2

    I use vim-plug as my Plugin manager, it is very light weight :)
    Cool video, and I learned something that I didn't know from your .vimrc
    Thank You for sharing :)

  • @mikhailkhlyzov6205
    @mikhailkhlyzov6205 2 роки тому +2

    I like Vim aswell exactly for the portability and minimalism reasons. I also happen to use Spyder for its ability to modify methods of existing python objects w/o the need to rerun all the code.

  • @FuZZbaLLbee
    @FuZZbaLLbee 2 роки тому +2

    Is there also a plug-in for navigating to the original function when you are at a line where free function is used
    Also does it have some file tree view
    Lastly I also need a good side by side visual comparison of the original file and the edited file.
    Working directly on the sever does indeed have its benefits

    • @Ticktok_of_Oz
      @Ticktok_of_Oz 2 роки тому +1

      movement in vim is kind of its key thing. probably the quickest would be just to put your cursor on the free function name and it "#" which treats it like a tag and will jump to the next match.
      there's a file tree built in to vim with the command :Vexplore. Although I think most people use the NERDtree plugin.
      In my .vimrc I have `:nnoremap ex :Vexplore:vertical resize 20:set winfixwidth` using a leader key(mine is comma) to quickly open the built in explorer. can also replace everything after "ex" to just ":NERDtree" to quickly open that instead. So just type ",ex" and the tree opens
      with vim installed you also get vimdiff. you run it from the commandline. "vimdiff file1.py file2.py"

  • @qrockz007
    @qrockz007 Рік тому +1

    what's your workflow executing python code? Do you use ipython and connect vim to it so that yout can execute python code within vim but but without losing focus on vim?

    • @MachineLearningwithPhil
      @MachineLearningwithPhil  Рік тому

      Nope, I just exit vim and run python from the terminal.

    • @MachineLearningwithPhil
      @MachineLearningwithPhil  Рік тому

      Although this sounds like a good idea. I shall look into it, thanks.

    • @qrockz007
      @qrockz007 Рік тому +1

      @@MachineLearningwithPhil So for example if u have 2 Monitors i think it's possible to use one mointor for vim programming and the other monitor running an ipython console in a terminal. There is a vim plugin vim-ipython. "[...]Using this plugin, you can send lines or whole files for IPython to execute[...]You can also send whole files to IPython's %run magic using "
      Would be nice if you can dig into it and give me/us an update.

    • @MachineLearningwithPhil
      @MachineLearningwithPhil  Рік тому

      Thank you, I will look into it!

  • @py-zc1vv
    @py-zc1vv 5 місяців тому

    THANK you, SIRE. Just small quick question - How did you get the "SYNTAX HIGHLIGHTING" right out of the box, without ever doing anything? What am i missing here?

  • @first-thoughtgiver-of-will2456
    @first-thoughtgiver-of-will2456 2 роки тому +10

    Vscode has a pretty good remote extension that runs everything on the ssh machine and setups up a dot file on the external machine with extensions etc. All being offloaded to the remote machine. I like Vim too but wanted to make sure you knew about this.

    • @yskim69
      @yskim69 Рік тому

      you saved my time. thanks

    • @bidossessi
      @bidossessi Рік тому +3

      VSCode's remote extension will disconnect from your _LOCAL_ VM if you lose internet. That's a pretty frustrating experience, and the very reason why I'm even looking at this video right now. So yeah.

  • @BobGamble
    @BobGamble 2 місяці тому

    Great setup. Thanks for sharing. I use vim for everything I can.

  • @bobingstern4448
    @bobingstern4448 2 роки тому +1

    What happened to the GPU giveaway?

    • @MachineLearningwithPhil
      @MachineLearningwithPhil  2 роки тому

      Winners were notified via email - I didn't make a follow up video. You can find the code I used to generate the winners here:
      github.com/philtabor/UA-cam-Code-Repository/blob/master/giveaway_scrubbed.py

  • @electric_sand
    @electric_sand 2 роки тому +1

    Yay! Phil!

  • @abbaraphael2930
    @abbaraphael2930 9 місяців тому

    Hey Phil, great explanations. Could you share the github links you used.

  • @patmower46
    @patmower46 Рік тому

    Thanks....loved this. Still use sublime text at times, but usually VIM for EVERYTHING!

  • @frenchmike
    @frenchmike 9 місяців тому

    vscode let's you ssh it to remote machines.

  • @muhammadahmadkhalid364
    @muhammadahmadkhalid364 Рік тому

    Can you show us to install it on windows 10 and how to get the hovering box that shows the parameters of a function in Vim?

  • @mikylekruger4000
    @mikylekruger4000 2 роки тому

    I’m gonna ditch vscode because this looks great and minimal.

  • @Cmdrlucky8
    @Cmdrlucky8 2 роки тому

    I've been thoroughly won over. Bye, VS Code

  • @aelinwhitehorn3526
    @aelinwhitehorn3526 Рік тому

    the line numbers did not show up and the code is correct?

  • @craigdanielmaceacher
    @craigdanielmaceacher Рік тому

    Don't use Vundle in 2002, just use native packages support or minpac or even vim-plug

  • @esanchez8277
    @esanchez8277 2 роки тому

    Hey Phil, given your experience in the semiconductor space. Would you ever come back to the area with the chips act passing?

  • @PerEng2405
    @PerEng2405 Рік тому

    To the point. Brilliant.

  • @vip-cw1st
    @vip-cw1st 2 роки тому

    Welcome back

  • @tmendoza6
    @tmendoza6 Рік тому

    love Vim