: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.
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.
@@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
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
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...
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
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
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
@@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.
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.
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
I've been using Vim for 3 years and had no about :read or moving the front of visual selection. Thanks g
It's amazing how much there is to learn in Vim even after years of use! Glad you found it helpful!
g is OP
@ It really is! But I had to leave some more tips for a follow up video 😜
: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.
I knew about `:r` but actually not about `:0r`. Another thing I wish I learned sooner! 😉 Thanks for your input!
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.
@@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
I regularly use diw, daw, ciw, caw etc, but didn't realize dw, cw etc existed lol.. i normally just use dt, ct etc, which mostly works 😅
Love the reminder for ZZ And ZQ - always forget those! Great video!
You're welcome 😜
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
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.
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...
Super useful. Thanks for this tutorial.
I'm glad you found the video helpful! It means a lot!
Great content! Thanks man!
Thanks, man! Glad you liked it! More content is already in the pipeline 😊
Another quality video!
Thanks again! Trying my best here 😅
Thank you so much. This video is really useful. I learned a lot from your tips.
Awesome, thank you! Stay tuned for more tips 😉
Great tips!
Thanks for your support! Glad you liked 'em! What was your favorite tip?
[ 03:49 ] "a word"? I'm pretty sure the _a_ is for _around_ .
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
4:21 😅
A man with a keen eye! 😉
I would love a keyboard layout video. I’m still searching for the best way to arrange my symbols.
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
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
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 🙈
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
yet another editor I'm never going to try.
Thanks for sharing your thoughts! I appreciate your honesty, and I hope you find the right editor that suits your needs!
@@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.
What is the tool you rae using to show those keypresses??
@1:36 how did you jump the cursor onto the numberline itself? Is it odd that, that was my WTF moment.
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.
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
Having a shortcut for destructive actions amplifies stupidity. i never use zq. 😑. went to college with bill joy.
Actually good point! There's always a tradeoff.
Double explanation + command will echo in the editor itself. E.g. !!ls -a
Also a good one! Thanks for mentioning it!