Fast Jumping in Neovim with Leap.nvim

  Рет қаралды 6,797

Andrew Courter

Andrew Courter

Күн бұрын

Пікірлер: 50
@ascourter
@ascourter 8 ай бұрын
What techniques / plugins do you use for fast jumping?
@RapLyricalVideos
@RapLyricalVideos 8 ай бұрын
Harpoon by ThePrimeagen
@ascourter
@ascourter 8 ай бұрын
@@RapLyricalVideos do you use that to jump between buffers or to specific locations within a buffer?
@ovidiu_nl
@ovidiu_nl 8 ай бұрын
None. I just use relative numbers to jump to the row I want (I may use H, M, L to get close first) and then I use w, f, t etc to move horizontally. That way I have the muscle memory to jump around effectively even if I'm on a minimally configured vim (for instance on a server). I feel like leap or similar plugins would ruin that muscle memory. I never really understood harpoon. If I do something that requires me to jump around a bunch of locations I just set up some uppercase marks. That also doesn't require any plugin.
@RapLyricalVideos
@RapLyricalVideos 8 ай бұрын
@@ascourter a --- for adding a file in a Harpoon list m --- for viewing Harpoon menu first.html -> 1 second.html -> 2 third.html -> 3 fourth.html -> 4
@ovidiu_nl
@ovidiu_nl 8 ай бұрын
@@RapLyricalVideos I'd do mA, mB, mC, mD to mark the locations, then 'A, 'B, 'C, 'D to jump back to them. I guess I don't have the menu, but I don't really feel I'm missing much... I usually set these up for the task at hand so it's all kinda temporary. I'm not going to forget which is which. And I often set a Z mark as a sort of anchor point when I'm about to embark on some exploration of the code and I want to be able to quickly jump back where I started.
@rodelias9378
@rodelias9378 8 ай бұрын
Nice video! Thanks! Looking forward to flash.nvim video
@noomondai
@noomondai 8 ай бұрын
Welcome back thanks for the vid!
@ascourter
@ascourter 8 ай бұрын
Thank you!
@Youkouleleh
@Youkouleleh 8 ай бұрын
I was using easy motion before, i liked it
@linkarzu
@linkarzu 8 ай бұрын
Nice, thanks for the tip. I navigate horizontally using the default "f" then ";" but the single character I can type is not good enough for me. So I'll try this.
@theherk
@theherk 8 ай бұрын
The whole mini.nvim library is incredible. mini.files and mini.clue and best-in-class in my opinion.
@ascourter
@ascourter 8 ай бұрын
Nice. This is on my list to explore more after hop.nvim
@aquepaique
@aquepaique 8 ай бұрын
I personally prefer using the default / ? I find more comfortable typing the whole word than guessing the random char that leap/flash will prompt.
@orian7688
@orian7688 8 ай бұрын
flash.nvim is similar to leap but allows you to type as many letters as you want
@aquepaique
@aquepaique 8 ай бұрын
​@@orian7688 yeah, and also Leap is confusing because sometimes the cursor makes random jumps before the objective. Flash is the best option IMO, but I prefer using the vim native behavior (?/ ctrl-g ctrl-t)
@tedmoyses2942
@tedmoyses2942 8 ай бұрын
Came here to say this. Glad it's not just me ​@@aquepaique
@ascourter
@ascourter 8 ай бұрын
Thanks for sharing! I definitely get this and have had to train my muscles not to type the word when using leap.
@j1d7s
@j1d7s 8 ай бұрын
I have been using leap for a long time, it is one of my favourite plugins and I don't think it get's better, but let's see what you tell us about the others! One thing I noticed was that the "search area" is being greyed out, this does not happen for me. Maybe it is because of my colorscheme (?).
@ascourter
@ascourter 8 ай бұрын
Nice! Oh it might be your color scheme like you mentioned. I'm using Tokyo night.
@j1d7s
@j1d7s 8 ай бұрын
@@ascourter I am using "catppuccin/nvim". But I think it may be better afer all if the search area is not greyed out for me because that could hurt readability.
@prashlovessamosa
@prashlovessamosa 8 ай бұрын
Mr Andrew how can I render images in neovim there is a plugin image.nvim I have followed its instructions i use kitty but I am still unable to do it please make something on it.
@ascourter
@ascourter 8 ай бұрын
Thanks for your request! I went down a rabbit hole of trying to get image rendering to work in the terminal but it didn't work out since I use tmux. I will dig more into this and hopefully get a video on doing this in neovim without tmux and see what I can come up with.
@obszczymucha1337
@obszczymucha1337 8 ай бұрын
What is the plugin that highlights the first letters in words after pressing f or F?
@ascourter
@ascourter 8 ай бұрын
github.com/jinh0/eyeliner.nvim
@obszczymucha1337
@obszczymucha1337 8 ай бұрын
@@ascourter Thank you!
@rwz
@rwz 8 ай бұрын
It would be great to know if a plugin works well within macros. Will give it a try, but definitely need to find a good alternative for `s`.
@ascourter
@ascourter 8 ай бұрын
Oh good question. That's something I can think about with upcoming videos. Thanks!
@WhatNameHere
@WhatNameHere 8 ай бұрын
Does your config work with golang? Or how can one make it work?
@ascourter
@ascourter 8 ай бұрын
I haven't setup golang yet, it's on my list to configure and I'll be sure to create a video on it!
@WhatNameHere
@WhatNameHere 8 ай бұрын
@@ascourter yeah I’ll be waiting for it, and probably a video explaining how you exactly can setup basically everything for any language + dap.
@jagannathhari
@jagannathhari 8 ай бұрын
Also for me visual selection is not working
@ascourter
@ascourter 8 ай бұрын
Thank you! I'm glad it's not just me
@cody_codes_youtube
@cody_codes_youtube 8 ай бұрын
FIRST
@ascourter
@ascourter 8 ай бұрын
I am gonna call you "Quick Draw Cody" now haha
@cody_codes_youtube
@cody_codes_youtube 8 ай бұрын
@@ascourter I accept this title
@onewhoanimates9016
@onewhoanimates9016 8 ай бұрын
Nice video, I switched from leap to flash, check it out. No more s and S, with flash s jumps forwards and backwards
@ascourter
@ascourter 8 ай бұрын
Nice, I'm experimenting with flash this week!
@naranyala_dev
@naranyala_dev 8 ай бұрын
combine things like oil.nvim and leap.nvim in the future, or others
@tranquythuong
@tranquythuong 8 ай бұрын
I think hop.nvim is more simple to use than Leap.nvim
@ascourter
@ascourter 8 ай бұрын
What do you like about hop.nvim?
@rtalexk
@rtalexk 8 ай бұрын
Leap is predictable compared to to others that I’ve tried. In Leap you’ll always press the first two characters of a word. And when you know exactly where you want to move to, you don’t have to think, this leaves you with way less marks to think about, just the tie breaker.
@tranquythuong
@tranquythuong 8 ай бұрын
@@rtalexk In hop.nvim, I just use the word jumping. When I need to jump to a specific word, I look at that word and double press on leader key, then type 1, 2 or 3 chars to jump to it, just have to think once. As you describe the leap.nvim, each time you need to jump, you type first 2 chars, and then press something one more time to jump, that's more complicated.
@RapLyricalVideos
@RapLyricalVideos 8 ай бұрын
FIRST
@ascourter
@ascourter 8 ай бұрын
haha I think Cody might have narrowly beat ya
@RapLyricalVideos
@RapLyricalVideos 8 ай бұрын
@@ascourter xD
Which is Better Flash.nvim OR Leap.nvim?
11:35
Andrew Courter
Рет қаралды 14 М.
Is Hop.nvim better than Flash.nvim?
16:04
Andrew Courter
Рет қаралды 9 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Move Ten Times Faster in Neovim With Leap
4:40
Cretezy
Рет қаралды 5 М.
Ultimate Quickfix List Guide
10:15
Andrew Courter
Рет қаралды 28 М.
3 Levels of Vim Refactoring
7:48
typecraft
Рет қаралды 45 М.
Why oil.nvim is the best directory plugin
9:12
Andrew Courter
Рет қаралды 34 М.
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 741 М.
Render Images in Neovim & tmux
14:51
Andrew Courter
Рет қаралды 5 М.
Effective Neovim: Instant IDE
16:16
TJ DeVries
Рет қаралды 842 М.
One of the best Neovim plugins is about to be archived.
6:10
Dreams of Code
Рет қаралды 33 М.
I'm Never Using Neovim's Terminal The Same Again
8:43
DevOps Toolbox
Рет қаралды 51 М.
Intro to Customizing LazyVim
8:10
Andrew Courter
Рет қаралды 20 М.