Marco Peluso
Marco Peluso
  • 4
  • 19 358
7 Vim Tips and Tricks I Wish I Learned Sooner
Learn about 7 Vim tips and tricks I wish I would known earlier!
*th-cam.com/video/-2Nz8rn05bk/w-d-xo.html*
In this video you will learn about seven vim motions and commands, that will make your Vim experience even better!
⌛ *Timestamps*
00:00 - Intro
00:11 - 1. Exiting Vim
01:27 - 2. Relative Line Numbers
03:01 - 3. Using Text Objects
05:18 - 4. Running External Shell Commands
06:20 - 5. Read External File Content
06:50 - 6. Scrolling The Editing Window
08:28 - 7. Changing The Visual Selection
🔗 *Links*
My Website: marcopeluso.com
My Dotfiles: github.com/mplusp/dotfiles
🗨️ *Mentions*
th-cam.com/video/YwTalCgH2yc/w-d-xo.html
🎧 *Music*
Music track: Moonlight by Ocean Bloom
Source: freetouse.com/music
No Copyright Music for Videos (Free)
Music track: Waking Up by Ocean Bloom
Source: freetouse.com/music
Royalty Free Music (Free Download)
Music track: Catamaran by Ocean Bloom
Source: freetouse.com/music
Copyright Free Music (Free Download)
Music track: Sky by Ocean Bloom
Source: freetouse.com/music
Free No Copyright Music Download
#️⃣ *Tags*
#vim #neovim
#terminal #commandline #macosterminal #macos #unix #linux #linuxterminal #shell #bash #zsh
มุมมอง: 8 412

วีดีโอ

Revolutionize Your Workflow on The Command-line With fzf
มุมมอง 1K28 วันที่ผ่านมา
fzf will change your workflow on the command-line! *th-cam.com/video/LnZdaNfQ86o/w-d-xo.html* ⌛ *Timestamps* 00:00 - Intro 00:28 - What is fzf 01:23 - Installing fzf 02:16 - Basic Functionality 03:14 - Search Syntax 05:05 - Shell Ingegration - Keybinds 08:15 - Shell Ingegration - Completions 11:47 - Configure Shell Integration 15:02 - fzf Wiki 🔗 *Links* My Blog: marcopeluso.com My Dotfiles: git...
Boost Your Terminal Productivity Like a PRO with zoxide!
มุมมอง 456หลายเดือนก่อน
Use zoxide to navigate your terminal like a wizard! *th-cam.com/video/LnZdaNfQ86o/w-d-xo.html* ⌛ *Timestamps* 00:00 Intro 00:14 Introducing zoxide 00:54 Basic Usage 01:15 Training 01:48 A Deeper Look 02:28 Advanced Usage 03:11 Interactive Selection 03:50 Editing The Database 04:28 Interactive Completion 🔗 *Links* My Dotfiles: github.com/mplusp/dotfiles 🗨️ *Mentions* zoxide: github.com/ajeetdsou...
Level Up Your macOS Terminal with WezTerm, Starship and eza
มุมมอง 10Kหลายเดือนก่อน
Upgrade your macOS terminal experience! *th-cam.com/video/-2Nz8rn05bk/w-d-xo.html* Use Homebrew to set up WezTerm, Zsh plugins, a great prompt with Starship and replace ls with the better and more flexible file listing tool eza. Make your terminal experience more beautiful, more functional and more fun! ⌛ *Timestamps* 00:00 - Intro 00:33 - Installing Homebrew 01:08 - Installing WezTerm 01:57 - ...

ความคิดเห็น

  • @Alth33r
    @Alth33r 18 ชั่วโมงที่ผ่านมา

    really to see the video about the twm (maybe you already have it, will look into your channel :) )

  • @docmalitt
    @docmalitt 2 วันที่ผ่านมา

    Dude, you should have watched Luke Smith's "Vim Diesel Viminator"... It has all these cool tips and tricks and much more. Ok, first, thx for all these tricks but honestly that (a bit more than 1h) video I have saved on every machine and VM I own (yes, all linux... I am strange) but it should be repeated regularly. I know ppl h8 when mentioning other creators in comments, but as soon as I saw your first ZZ it reminded me on his 1st "trick" in his . He is a bit weird, but regarding Vim, tbh a lot to learn from him... keep em coming. Love your terminal...

  • @mohammedsafki7564
    @mohammedsafki7564 3 วันที่ผ่านมา

    What is the tool you rae using to show those keypresses??

  • @godDIEmanLIVE
    @godDIEmanLIVE 4 วันที่ผ่านมา

    You learn something new every day with Vim.

  • @prashanthd.p2285
    @prashanthd.p2285 5 วันที่ผ่านมา

    Well this doesn't seem like your 1st video, Video was super informational! I'm subscribing you:)

  • @modernkennnern
    @modernkennnern 5 วันที่ผ่านมา

    I regularly use diw, daw, ciw, caw etc, but didn't realize dw, cw etc existed lol.. i normally just use dt<space>, ct<space> etc, which mostly works 😅

  • @_tingExE
    @_tingExE 5 วันที่ผ่านมา

    Double explanation + command will echo in the editor itself. E.g. !!ls -a

    • @marco_peluso
      @marco_peluso 5 วันที่ผ่านมา

      Also a good one! Thanks for mentioning it!

  • @digitaldisruptlabs
    @digitaldisruptlabs 5 วันที่ผ่านมา

    Great video! You just sold me Wezterm after years using iterm2. Very powerful emulator, thanks!

    • @marco_peluso
      @marco_peluso 5 วันที่ผ่านมา

      Glad I could inspire you to try it out! Have fun with it 😊

  • @graydhd8688
    @graydhd8688 5 วันที่ผ่านมา

    yet another editor I'm never going to try.

    • @marco_peluso
      @marco_peluso 5 วันที่ผ่านมา

      Thanks for sharing your thoughts! I appreciate your honesty, and I hope you find the right editor that suits your needs!

    • @graydhd8688
      @graydhd8688 5 วันที่ผ่านมา

      @@marco_peluso Okay youtube is being weird for me, I know what video I meant to make this comment on and it wasn't this one lol. I think youtube loaded a vid I clicked on after this one but didn't update the comment section before commenting on the new vid.

  • @raughboy188
    @raughboy188 5 วันที่ผ่านมา

    I will add to video. You can also install homebrew on linux too. You can then install all the plugins he shown in indentical way. I did it for plugins i couldn't find in my distro's repository so fellow linux users things you want but can't find on your distro you can find and install using hombrew on linux.

  • @MarcoAntoniotti
    @MarcoAntoniotti 6 วันที่ผ่านมา

    The only command you need is actually M-x evil 😊

  • @jonashestdahl
    @jonashestdahl 6 วันที่ผ่านมา

    Exquisite quality. I think it was very engaging and sprinkled with lots of useful information. I'm intrigued for more content. You have a new sub from me!

    • @marco_peluso
      @marco_peluso 5 วันที่ผ่านมา

      Wow, thank you for the support and for subscribing! I'm glad you enjoyed the video. I hope I can deliver on your expectations 😅

  • @wiseskeshom4673
    @wiseskeshom4673 7 วันที่ผ่านมา

    Thank you so much. This video is really useful. I learned a lot from your tips.

    • @marco_peluso
      @marco_peluso 5 วันที่ผ่านมา

      Awesome, thank you! Stay tuned for more tips 😉

  • @ivanheffner2587
    @ivanheffner2587 7 วันที่ผ่านมา

    :read (can be shortcut to :r ) puts the text of the read file below the current line. You can use :0r to put the contents above the current line. This is helpful if you are reading some script with a shebang line that needs to be the first line.

    • @marco_peluso
      @marco_peluso 7 วันที่ผ่านมา

      I knew about `:r` but actually not about `:0r`. Another thing I wish I learned sooner! 😉 Thanks for your input!

  • @liambunyan4116
    @liambunyan4116 8 วันที่ผ่านมา

    @1:36 how did you jump the cursor onto the numberline itself? Is it odd that, that was my WTF moment.

    • @ivanheffner2587
      @ivanheffner2587 7 วันที่ผ่านมา

      It looks like he’s using a multiplexer (probably Tmux). If you go back and slow it down, you’ll see a Ctrl-Shift-X, which probably is a control sequence for the multiplexor. At that point the cursor is no longer inside (Neo)Vim but in the multiplexor view and can be moved around the multiplexor buffer. When he exits this mode, it returns the cursor to Vim’s control, which does not let you move the cursor to the line number column.

    • @marco_peluso
      @marco_peluso 7 วันที่ผ่านมา

      Very nice observation! It's actually WezTerm's copy mode you see me using here. I show it off more in depth in my first video is actually: th-cam.com/video/LnZdaNfQ86o/w-d-xo.html

  • @KarlLew
    @KarlLew 8 วันที่ผ่านมา

    Having a shortcut for destructive actions amplifies stupidity. i never use zq. 😑. went to college with bill joy.

    • @marco_peluso
      @marco_peluso 7 วันที่ผ่านมา

      Actually good point! There's always a tradeoff.

  • @paleopteryx
    @paleopteryx 8 วันที่ผ่านมา

    A good text editor would have a menu. You know what a menu is, right? It's that bar on the top screen (or bottom) where different options are available so you don't need to carry with you sheets of paper printed with key combinations. Yes, a menu... look that in the dictionary. The "Turbo Editor" had it in the late 80's. It was probably the best text mode editor that ever existed. A damn MENU and a minimal user interface. It's not so hard to implement nor does it take too much space to justify its absence. But admit it, VI(M) is the simply a tool for all the assholes that need to show off. Nothing more. And, for me, everyone that brags about using VI(M) ... IS just an ignorable asshole.

    • @marco_peluso
      @marco_peluso 7 วันที่ผ่านมา

      Thanks for sharing your thoughts! To each their own, I say. People are different and like different things, so you're of course entitled to have your own opinions and views. And if people are using something only for bragging rights, that's the wrong reason, in my humble opinion, of course 😉

  • @feresp
    @feresp 9 วันที่ผ่านมา

    Great content! Thanks man!

    • @marco_peluso
      @marco_peluso 8 วันที่ผ่านมา

      Thanks, man! Glad you liked it! More content is already in the pipeline 😊

  • @reversev9778
    @reversev9778 9 วันที่ผ่านมา

    I would love a keyboard layout video. I’m still searching for the best way to arrange my symbols.

    • @marco_peluso
      @marco_peluso 8 วันที่ผ่านมา

      Will do it, but I have a few other videos in the pipeline first. To help you a little bit sooner, I use Miryoku layout in combination with a 36-key chocofi keyboard. More info on the layout can be found here: github.com/manna-harbour/miryoku/tree/master/docs/reference

  • @anthonytumia
    @anthonytumia 9 วันที่ผ่านมา

    I always remap “viw” to “vw” and “vw” to “ve” etc. Visual word meaning the current word and “visual end” for the rest of the word after the cursor makes more sense to me

    • @marco_peluso
      @marco_peluso 9 วันที่ผ่านมา

      Great idea, I like that! Maybe I will try that, but I think my muscle memory is probably already too strong to make that switch, now 🙈

    • @modernkennnern
      @modernkennnern 5 วันที่ผ่านมา

      I'm always reluctant to change such fundamentals because they don't transfer. Vim keybindings are usable in a fair number of applications and they obviously don't use your custom re-mapping

  • @davidallred991
    @davidallred991 9 วันที่ผ่านมา

    Nice I learned a few new things. Also, a minor correction and the only reason I mention it is because I think it makes a difference for remembering its purpose if newbies are watching. The "a" in commands like "daw" or "caw" stands for "around" meaning it will grab the outer bounds. Really helpful to remember for example if you need to grab the quotes or brackets along with the text. so if you need to grab "text in quotes" the command va" will visually select the text and the quotes included where as let's say ci" will just change the text between the quotes but not include them.

    • @marco_peluso
      @marco_peluso 9 วันที่ผ่านมา

      @@davidallred991 Glad you learned something new 🥳 You’re actually the second person to mention this in the comments. I actually find "around" to be a better mnemonic myself. And also thanks for the helpful further explanation 😎 I totally agree with you, I should have called it “around” in the video, especially for people new to Vim. I was reading from the NeoVim docs in the video, though. There it is called “a word”. You can also have a look at the Vim docs, that seem to also have it defined as “a word”. See vimdoc.sourceforge.net/htmldoc/usr_04.html#04.8

  • @maximgospodinko
    @maximgospodinko 9 วันที่ผ่านมา

    Nice vid. Thank you! A lot of good stuff learned

    • @marco_peluso
      @marco_peluso 9 วันที่ผ่านมา

      Thanks so much! I’m glad you found it helpful. Your support means a lot!

  • @y9tw0t
    @y9tw0t 10 วันที่ผ่านมา

    [ 03:49 ] "a word"? I'm pretty sure the _a_ is for _around_ .

    • @marco_peluso
      @marco_peluso 10 วันที่ผ่านมา

      I actually say "around" myself, usually. The Vim docs define it as "A Word", though. See vimdoc.sourceforge.net/htmldoc/usr_04.html#04.8

    • @traal
      @traal 8 วันที่ผ่านมา

      4:21 😅

    • @marco_peluso
      @marco_peluso 8 วันที่ผ่านมา

      A man with a keen eye! 😉

  • @JamesKaupert
    @JamesKaupert 11 วันที่ผ่านมา

    Love the reminder for ZZ And ZQ - always forget those! Great video!

    • @marco_peluso
      @marco_peluso 10 วันที่ผ่านมา

      You're welcome 😜

  • @sammyvandenburg
    @sammyvandenburg 11 วันที่ผ่านมา

    Another quality video!

    • @marco_peluso
      @marco_peluso 10 วันที่ผ่านมา

      Thanks again! Trying my best here 😅

  • @dayvore8779
    @dayvore8779 11 วันที่ผ่านมา

    I find it hard to build up the muscle memory to make the complete switch to Vim, as I only use an editor occasionally. Videos like yours motivate me to keep on going because they show just how well thought out and powerful Vim really is. Thanks and keep up the good work

    • @marco_peluso
      @marco_peluso 10 วันที่ผ่านมา

      Just keep using it. I had a long on and off again relationship with Vim 😅 I kept coming back and eventually it just all made so much sense.

  • @sayo9394
    @sayo9394 11 วันที่ผ่านมา

    Thanks for suggesting Eza!

    • @marco_peluso
      @marco_peluso 10 วันที่ผ่านมา

      Glad you like it 👍

  • @toolbelt
    @toolbelt 11 วันที่ผ่านมา

    Super useful. Thanks for this tutorial.

    • @marco_peluso
      @marco_peluso 11 วันที่ผ่านมา

      I'm glad you found the video helpful! It means a lot!

  • @mischavandenburg
    @mischavandenburg 11 วันที่ผ่านมา

    Great tips!

    • @marco_peluso
      @marco_peluso 11 วันที่ผ่านมา

      Thanks for your support! Glad you liked 'em! What was your favorite tip?

  • @niftysweater
    @niftysweater 11 วันที่ผ่านมา

    I've been using Vim for 3 years and had no about :read or moving the front of visual selection. Thanks g

    • @marco_peluso
      @marco_peluso 11 วันที่ผ่านมา

      It's amazing how much there is to learn in Vim even after years of use! Glad you found it helpful!

    • @vikingthedude
      @vikingthedude 9 วันที่ผ่านมา

      g is OP

    • @marco_peluso
      @marco_peluso 9 วันที่ผ่านมา

      @ It really is! But I had to leave some more tips for a follow up video 😜

  • @jR-tm3ko
    @jR-tm3ko 12 วันที่ผ่านมา

    Brilliant!

    • @marco_peluso
      @marco_peluso 12 วันที่ผ่านมา

      Indeed! Glad you like the video ✌️

  • @AlexMusayev
    @AlexMusayev 12 วันที่ผ่านมา

    Thank you for the great tips! I'm using WezTerm for many months, but I had no idea about quick select :) (Subscribed!)

  • @micaelviana
    @micaelviana 14 วันที่ผ่านมา

    You don't need to install a Nerd Font to use Wezterm because it is already have built-in nerd symbols configured

    • @marco_peluso
      @marco_peluso 14 วันที่ผ่านมา

      @@micaelviana That's actually correct, thanks for the hint! Also JetBrains Mono is WezTerm's default font, so you don't even need to configure this. Unfortunately I found out about that a few weeks after the video already had been published.

  • @EttVenterPhoto
    @EttVenterPhoto 17 วันที่ผ่านมา

    Love your videos man! Please keep them coming!

    • @marco_peluso
      @marco_peluso 16 วันที่ผ่านมา

      Thanks so much for your support! I’m glad you’re enjoying the videos, and I’ll definitely keep on making more!

  • @summerWTFE
    @summerWTFE 17 วันที่ผ่านมา

    For a first video this was super!

    • @marco_peluso
      @marco_peluso 17 วันที่ผ่านมา

      Thank you so much, glad you think so! 🫶

  • @brivism
    @brivism 19 วันที่ผ่านมา

    Would love to see your WM setup! Subscribed🤞

    • @marco_peluso
      @marco_peluso 19 วันที่ผ่านมา

      Thanks for subscribing, really appreciate your support! I’ll definitely share my WM setup soon, so stay tuned!

  • @AricWilisch
    @AricWilisch 20 วันที่ผ่านมา

    I like wezterm. I'm having a problem with my current MacBook where it's not finding the config file. The same setup on another Mac she's fine. Rather frustration. Anyone else have this problem?

    • @marco_peluso
      @marco_peluso 19 วันที่ผ่านมา

      Unfortunately hard to tell what's wrong from here. Have you checked the file path and permissions on your current MacBook? Sometimes a small detail can make a big difference. Maybe have another look at wezfurlong.org/wezterm/config/files.html#configuration-files for more ideas. Good luck! 🤞

    • @bulldoser2610
      @bulldoser2610 วันที่ผ่านมา

      Hi I would love to help you. Can you reproduce it somehow? Maybe reinstall wezterm, mv ~/.config/wezterm/wezterm.lua{,.bak} , wezterm --config-file ~/.config/wezterm/wezterm.lua.bak . And none of this helps, report a bug on github.

  • @richyrose99
    @richyrose99 21 วันที่ผ่านมา

    Also, great video!! Subscribed! 👍🏻

    • @marco_peluso
      @marco_peluso 21 วันที่ผ่านมา

      Awesome! Thank you!

  • @richyrose99
    @richyrose99 21 วันที่ผ่านมา

    Im going to give this ago, I've been using iTerm2 for too long now 😂

    • @marco_peluso
      @marco_peluso 21 วันที่ผ่านมา

      Let me know how how it went! Have fun 😊

  • @howuseehim
    @howuseehim 27 วันที่ผ่านมา

    I was sold at the copy mode time to switch

    • @marco_peluso
      @marco_peluso 27 วันที่ผ่านมา

      It IS a great feature, right?

  • @mischavandenburg
    @mischavandenburg 27 วันที่ผ่านมา

    Amazing work, super useful tutorial!

    • @marco_peluso
      @marco_peluso 27 วันที่ผ่านมา

      Thanks, I'm glad you like it! 🥳

    • @RazoBeckett.
      @RazoBeckett. 26 วันที่ผ่านมา

      Hey Mischa love your videos too man!

    • @marco_peluso
      @marco_peluso 26 วันที่ผ่านมา

      @@RazoBeckett. Mischa is the best 🫶

  • @JamesKaupert
    @JamesKaupert 28 วันที่ผ่านมา

    Love the completion keybinds and kill process example. Awesome video!

    • @marco_peluso
      @marco_peluso 27 วันที่ผ่านมา

      I'm happy you liked it and learned something new 🥳

  • @Hulk-und-Michelle-BrawlStars
    @Hulk-und-Michelle-BrawlStars 28 วันที่ผ่านมา

    Nice!! Thanks for the timeline - it makes it much easier to navigate through. I’ll try this later👍 Keep uploading these kind of videos pls🙌

    • @marco_peluso
      @marco_peluso 28 วันที่ผ่านมา

      @@Hulk-und-Michelle-BrawlStars Have fun, let me know how it went. There's plenty of content coming, don't worry 😜

  • @almeidainf
    @almeidainf หลายเดือนก่อน

    Interactive completion didn't work for me. Will try to find out why. Great video! Looking forward to the next one.

    • @marco_peluso
      @marco_peluso หลายเดือนก่อน

      Glad you like it! Thank you ☺️ Regarding interactive completion not working: You need fzf to be installed for interactive completion to work. Did you install fzf? That's the first reason I can think of, why it might not be working.

    • @almeidainf
      @almeidainf หลายเดือนก่อน

      @@marco_peluso I did install fzf cdi works fine It's just space + tab after "cd <part of name>", right?

    • @marco_peluso
      @marco_peluso หลายเดือนก่อน

      That's right. Do you have Zsh comletions enabled? They have to be enabled and the line `eval "$(zoxide init zsh)"` has to be added after `compinit` is called in your `.zshrc`. There's also a hint in zoxide's installation instructions: > For completions to work, the above line must be added after `compinit` is called. You may have to rebuild your completions cache by running `rm ~/.zcompdump*; compinit`. If you haven't set up completions yet, this is a great guide: thevaluable.dev/zsh-completion-guide-examples/ Let me know if that helps 🤞 I'm assuming you're also using `Zsh` as your shell here, of course. zoxide completions only work with zoxide v0.8.0+, bash 4.4+/fish/zsh, btw.

    • @LawfulToad-x7l
      @LawfulToad-x7l 11 วันที่ผ่านมา

      @@marco_peluso this is exaclty what i was looking for. I recon interactive search did not work. cdi (zi) works like a charm. Thank you for spotting a possible issue

    • @almeidainf
      @almeidainf 9 วันที่ผ่านมา

      @@marco_peluso There we go, it works! I was indeed missing Zsh completions. Thank you for taking the time to help! That guide looks like a fun rabbit hole to get into sometime, thank you for sharing.

  • @almeidainf
    @almeidainf หลายเดือนก่อน

    Awesome video, Marco! Keep them coming! Subscribed.

    • @marco_peluso
      @marco_peluso หลายเดือนก่อน

      Thanks for the sub and the nice comment! More content is aleeady in the pipeline 😉

  • @khunjame7
    @khunjame7 หลายเดือนก่อน

    Can you make a video how to configure NVim😂from scratch

    • @marco_peluso
      @marco_peluso หลายเดือนก่อน

      @@khunjame7 Great suggestion! It's already on my videos-to-make list 😉😎

  • @dayvore8779
    @dayvore8779 หลายเดือนก่อน

    You just made my day. I was using aliases to browse frequently used directories, but it kept getting harder and harder to remember all those aliases. zoxide seems really intuitive. Keep those vids coming, I need more terminal wizardry 🪄

    • @marco_peluso
      @marco_peluso หลายเดือนก่อน

      I know, right? I've done exactly the same thing before I discovered zoxide... Glad I could help 🤗

  • @JamesKaupert
    @JamesKaupert หลายเดือนก่อน

    Love it!

    • @marco_peluso
      @marco_peluso หลายเดือนก่อน

      @@JamesKaupert Thank you!