My most used vim feature!

  Рет қаралды 4,849

Jose Sosa

Jose Sosa

Күн бұрын

Пікірлер: 27
@josesosa1017
@josesosa1017 5 ай бұрын
Sorry, just realized how small the font is!! 😅😅 In vi command line mode :r !
@Dexter101x
@Dexter101x 5 ай бұрын
Not only that, your audio is terrible
@dn275
@dn275 5 ай бұрын
Your audio was fine for me lol Thanks for sharing! I can already find a few uses for it in my workflow. Every day I learn something about vim. That’s part of the fun.
@amin29a39
@amin29a39 4 ай бұрын
also you can use vim terminal ( :term ) then normal mode ( Ctrl + \ + n ) . this way u can yank anything from terminal
@SuperPuns
@SuperPuns 5 ай бұрын
I think 'j' and ':w' are probably my most used vim features, but this seems useful as well 😂
@NEDinACTION
@NEDinACTION 5 ай бұрын
yoooooo that's a game changer for me! I've finally been learning how to make use of cli tools like sed and this makes the workflow 10x smoother, thanks!
@jamesburgess9101
@jamesburgess9101 5 ай бұрын
in command mode in vi (or vim) just type !! at the second exclamation point you'll be a special ! prompt where you could type ip a | grep inet. I seem to recall that this worked before :r knew to do something other than read files. The reason this might be more useful is the second character doesn't need to be a ! it can be other "addresses". So for example you can type !} ip a | grep inet. That will replace the current line up until the next blank line with the output of your command since } means "the next blank line". If the second character is ! in means replace the current line.
@s0sk0
@s0sk0 5 ай бұрын
this is amazing. thanks for sharing!!!
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 3 ай бұрын
to the point video, thank you :)
@josesosa1017
@josesosa1017 3 ай бұрын
You're welcome!
@ZIjnamuj72
@ZIjnamuj72 5 ай бұрын
Impressive! One more tip is that instead of using lsblk -f and select the desired UUID, you can simply use blkid -s UUID -o value /dev/sda1 (change /dev/sda1 to your target device) to just print the UUID.
@josesosa1017
@josesosa1017 5 ай бұрын
Nice! that saves time
@vaisakh_km
@vaisakh_km 5 ай бұрын
! Is more than that, we can redirect anything to cmdline with it eg: type in buffer for i in range(10): print(i) Visual select it, :!python result executes in python replace there eg 2: you have in buffer 2 3 1 5 so just do :!sort to sort it, :!sort | uniq to remove dupes or :!jq to format json string in file etc or how about bulk renaming files? :r !ls :%norm 0y$Imv ^[A ^[p to get ^[ (which is esc) use ctrl-v ctrl-[ now edit names :%!sh
@corvetteguy2223
@corvetteguy2223 5 ай бұрын
This is pretty useful!
@philpeko1796
@philpeko1796 5 ай бұрын
Hi, thanks for the video. @Dexter101x is right in the sense that : You should use an external microphon, because we hear your keystrokes and that's loud and annoying, and because audio level is too low. Please enhance sound quality, it only relies on you.
@MrXankiller
@MrXankiller 5 ай бұрын
awesome, I've never came across this feature thanks for sharing
@aetherclouds1181
@aetherclouds1181 5 ай бұрын
pretty neat, every so often I search up how to make it so you can freely move the cursor in a shell like zsh to, for instance, select and copy the text of a previous command, and I'm surprised that nothing ever shows up. this seems like one way to do it though
@jackyzheng55
@jackyzheng55 5 ай бұрын
You could press prefix + [ in tmux to go into copy mode and move around with your vim keys
@aetherclouds1181
@aetherclouds1181 5 ай бұрын
@@jackyzheng55 oh shit that's really cool, thanks
@chai01724
@chai01724 5 ай бұрын
thank u for this!
@camilotello3296
@camilotello3296 4 ай бұрын
WOAHHH that was awesome!!!
@iyar220
@iyar220 4 ай бұрын
Cool tip :)
@gblikas
@gblikas 5 ай бұрын
that’s sick
@UnwalledGarden
@UnwalledGarden 4 ай бұрын
:q ?
Windows & macOS can't do this, but Linux can!
15:55
The Linux Experiment
Рет қаралды 1 МЛН
Vim Tips You Probably Never Heard of
12:11
Luke Smith
Рет қаралды 125 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
This VIM trick BLEW MY MIND
6:37
typecraft
Рет қаралды 66 М.
Why I Gave Up On Linux
39:33
Theo - t3․gg
Рет қаралды 180 М.
How I Passed the RHCSA (EX200) in 2024
10:31
Jose Sosa
Рет қаралды 11 М.
Vim Motions & Tricks I Wish I Learned Sooner
9:25
Henry Misc
Рет қаралды 55 М.
30 Beginner Vim Commands in 7 Minutes
7:13
Nir Lichtman
Рет қаралды 18 М.
30 Vim commands you NEED TO KNOW (in just 10 minutes)
10:27
typecraft
Рет қаралды 141 М.
My Neovim & Tmux Terminal Dev Workflow As A Principal Engineer
9:22
DevOps Toolbox
Рет қаралды 59 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 86 М.
I forced EVERYONE to use Linux
22:59
NetworkChuck
Рет қаралды 648 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 1 МЛН