Neovim Power Tips: Volume 2

  Рет қаралды 8,197

Ben Frain

Ben Frain

Күн бұрын

Пікірлер: 49
@m47h4r
@m47h4r 2 күн бұрын
These two videos were really useful. Well done.
@jotarokujo6099
@jotarokujo6099 Жыл бұрын
I was constantly annoyed by #2. Didn't know there was a difference in p and P in visual mode. Very helpful!
@benfrainuk
@benfrainuk Жыл бұрын
Excellent! 👍
@kostasmoschos1552
@kostasmoschos1552 Жыл бұрын
It doesn't work in vim 8.1
@samcassidy2441
@samcassidy2441 Жыл бұрын
Love the tip on combining macros with the g command! My solution would have been to include navigating to the next instance of background (using /) as part of the macro, but this is a nice alternative that's potentially more flexible
@PragandSens
@PragandSens Жыл бұрын
thanks Hank from Breaking Bad
@benfrainuk
@benfrainuk Жыл бұрын
Lmao!
@tandlose
@tandlose Жыл бұрын
good video, would be nice with a thorough walkthrough of the command line in neovim. There are many videos explaining the basics of neovim with hjkl etc but few that explains the command line like norm etc
@benfrainuk
@benfrainuk Жыл бұрын
That’s a good idea. Will try and do a video on that soon. 👍
@robwells3713
@robwells3713 Жыл бұрын
Very helpful video. `norm` was a revelation!
@phaberest_
@phaberest_ Жыл бұрын
Good content! I'm still grasping quite a few
@mintcar
@mintcar Жыл бұрын
I think your theming and colours look really nice.
@visionary_3_d
@visionary_3_d Жыл бұрын
Love your videos. Keep up the good work 🔥
@aaronmcadam
@aaronmcadam Жыл бұрын
Thanks for this, really enjoyed it. And I think you're more of a Bruce Willis, personally 🤣
@benfrainuk
@benfrainuk Жыл бұрын
Ha. I’ll take that. Yippee Ki-yay …
@sp3ctum
@sp3ctum 6 ай бұрын
@@benfrainuk a great username would be "Bruce Vimis". Okay, maybe not that great. 😄
@craigdanielmaceacher
@craigdanielmaceacher Жыл бұрын
using vim-unimpaired makes pasting above and below easier with [p and ]p plus it has other variants to indent as well as paste so you can do >]p
@benfrainuk
@benfrainuk Жыл бұрын
I’ve actually taken to using mini-bracketed for this thanks to your suggestion. It’s a nice way to think about the above and below, thanks 🙏
@WillEhrendreich
@WillEhrendreich Жыл бұрын
Awesome stuff thanks!
@pwnwriter
@pwnwriter Жыл бұрын
map j -> jzz k -> kzz
@gplusplus314
@gplusplus314 Жыл бұрын
Thanks for another great video! Hey just FYI, your audio has a lot of unintended bass. It’s making my subwoofers shake the house, usually whenever you type. Think “Jurassic Park” when the cup of water is rippling each time the T-Rex 🦖 takes a step. Solution: do a low-cut (or high pass) at 120 hz or higher. Pretty much any video or audio editing tool can do this. 😉
@benfrainuk
@benfrainuk Жыл бұрын
Thanks, I’ll take a look for the next one. I was told by someone into audio that at the end of my edit to slap a compressor filter onto the audio. That definitely boosts everything but maybe at the expense of being too much! Will try the next one without that.
@gplusplus314
@gplusplus314 Жыл бұрын
@@benfrainuk The compression sounds good! You just need to do a low-cut *after* the compressor. So basically just chop out anything below 120 hz or so. Play with that number until you’re happy with the result, basically. Some compressors have a built-in way of doing this, but the mental model should be “compress first, then cut out the bad frequencies after.” “Shake the house” bass starts at about 80 hz, to give you an idea. “Shake the entire Earth” happens at 30 hz or so, which is a hell of a surprise when waking up with my morning coffee. Haha! 🦖 ☕️
@benfrainuk
@benfrainuk Жыл бұрын
@@gplusplus314 ok great 🤣 sorry about that, I’ll give the low cut a go next time 👍
@benfrainuk
@benfrainuk Жыл бұрын
Tried your suggestion on the audio for my latest review (Glove 80). If you get chance to take a look/listen, let me know if that’s an improvement. Thanks again. 👍
@gplusplus314
@gplusplus314 Жыл бұрын
@@benfrainuk Yes sir! Sounds great! I’ll miss the house rattles, but the quality content is a worthwhile tradeoff. 🤣
@gennarotedesco7973
@gennarotedesco7973 Жыл бұрын
Hi Ben, great video! If I understand correctly, you are using delta as vimdiff within the gitsign plugin? Could you expand on how you configured it (I am using delta as well but as far as I know there is no way to use it as drop-in replacement for the in-built vimdiff, but I hope I am wrong :) )?
@benfrainuk
@benfrainuk Жыл бұрын
The command I typically run is ‘:Gitsigns diffthis ~1’ that gives me a diff with solid background colours. There is supposed to be a way of getting it setup with Telescope too but it looked too convoluted for me to bother! Actually, now I look at my config, I’m not even sure Gitsigns is actually using delta! I think I only actually have delta working inside Lazygit. The fact that git signs shows me solid colours as opposed to the +/- that Telescope uses made me think it was using git-delta but now I am not sure!
@gennarotedesco7973
@gennarotedesco7973 Жыл бұрын
yes, however gitsigns uses the inbuilt vimdiff to show the differences, it does not take as option an external diff program (like delta), does it?
@sudqi
@sudqi Жыл бұрын
For deleting everything after commad instead of "df," you can do "dt," it will delete till the comma
@benfrainuk
@benfrainuk Жыл бұрын
But I want to delete everything AFTER the comma, not before. So I don’t think ‘dt,’ would help would it? Have I misunderstood? Another option that would do it though would be to work from the other end, so ‘norm $dF,x’ so we go to the end of the line, then delete back to the comma, then x to remove the character under the cursor
@sudqi
@sudqi Жыл бұрын
​@@benfrainuk I've misunderstood you sorry. I honestly use the substitute way more frequent .
@sibouras792
@sibouras792 10 ай бұрын
this is late but you could just move the cursor with l, so `dt,l`
@dbsmith3974
@dbsmith3974 Жыл бұрын
I was looking for the function that you added to telescope... is it in your blog?
@benfrainuk
@benfrainuk Жыл бұрын
Sorry! Just added the links to the description 👍
@whirr9755
@whirr9755 Жыл бұрын
how do you get that colorful animation on the line number when jumping at around ~ 2:40 ? thanks
@benfrainuk
@benfrainuk Жыл бұрын
github.com/gen740/SmoothCursor.nvim 👍
@brandondapro
@brandondapro Жыл бұрын
Have you switched from sublime to nvim?
@benfrainuk
@benfrainuk Жыл бұрын
Still love them both
@imaksimus
@imaksimus Жыл бұрын
Thanks for the video, it’s great. To copy unequal string you could also do :%!awk '{print $3}'
@benfrainuk
@benfrainuk Жыл бұрын
Cool! Will have a look at that and try and understand. Have had a tab open ‘Understanding Awk’ for about 4 years I still haven’t read 🤣
@imaksimus
@imaksimus Жыл бұрын
@@benfrainuk this is similar to the ripgrep example you show later in the video. Essentially it is a filter which prints the third column of each row.
@benfrainuk
@benfrainuk Жыл бұрын
@@imaksimus oooh, that’s really cool. Thanks, I am reading that article right now 👍👍
@imaksimus
@imaksimus Жыл бұрын
@@benfrainuk one more thing from me and I’ll shut up 😅 To delete everything after a comma, the following replace command would work too: :%s/,\zs.*/
@benfrainuk
@benfrainuk Жыл бұрын
@@imaksimus I’ll happily take everything you’ve got 👍
@pilkers745
@pilkers745 Жыл бұрын
hey ben! do you use tmux as well by chance??
@benfrainuk
@benfrainuk Жыл бұрын
I don’t. I find Kitty is enough for my needs.
@user-tb4ig7qh9b
@user-tb4ig7qh9b Жыл бұрын
Emacs where emacs
Neovim - Power Tips: Volume 1
15:52
Ben Frain
Рет қаралды 8 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 62 М.
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 42 МЛН
Just Give me my Money!
00:18
GL Show Russian
Рет қаралды 1 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 6 МЛН
These HIDDEN MOTIONS in Neovim will CHANGE how you work
11:11
DevOps Toolbox
Рет қаралды 23 М.
Neovim: Replacing Telescope with FZF-LUA
6:56
Ben Frain
Рет қаралды 5 М.
0 to LSP : Neovim RC From Scratch
30:47
ThePrimeagen
Рет қаралды 1,3 МЛН
NEVER lose dotfiles again with GNU Stow
14:33
typecraft
Рет қаралды 40 М.
The Holy Grail of Neovim Note Taking
14:38
DevOps Toolbox
Рет қаралды 331 М.
A Powerful Way To Make Editing Code In Neovim Even Better
17:48
Josean Martinez
Рет қаралды 121 М.
Gitlab DELETING Production Databases | Prime Reacts
17:27
ThePrimeTime
Рет қаралды 329 М.
My Forever Dev Workflow
16:02
typecraft
Рет қаралды 87 М.
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 42 МЛН