Become A Neovim Kangaroo

Поделиться
HTML-код
  • Опубликовано: 25 июн 2024
  • A quick tour of the Leap plugin for Neovim, which allows you to move your cursor to any place in the window extremely quickly.
    00:00 Traditional vim movements
    00:59 Leap movement
    02:48 Predecessors of Leap
    03:53 More Leap Features
    05:39 Groups
    06:34 Conclusion
    -
    Stuff I use to make these videos - I absolutely love all of these products. Using these links is an easy way to support the channel, thank you so much if you do so!!!
    Camera: Canon EOS R5 amzn.to/3CCrxzl
    Monitor: Dell U4914DW 49in amzn.to/3MJV1jx
    Lens: Sigma 24mm f/1.4 DG HSM Art for Canon EF amzn.to/3hZ10mz
    SSD for Video Editing: VectoTech Rapid 8TB amzn.to/3hXz9TM
    Microphone: Rode NT1-A amzn.to/3vWM4gL
    Microphone Interface: Focusrite Clarett+ 2Pre amzn.to/3J5dy7S
    Tripod: JOBY GorillaPod 5K amzn.to/3JaPxMA
    Keyboard: Redragon Mechanical Gaming Keyboard amzn.to/3I1A7ZD
    Mouse: Razer DeathAdder amzn.to/3J9fYCf
    Computer: 2021 Macbook Pro amzn.to/3J7FXtW
    Caffeine: High Brew Cold Brew Coffee amzn.to/3hXyx0q
    More Caffeine: Monster Energy Juice, Pipeline Punch amzn.to/3Czmfox
    Building A Second Brain book: amzn.to/3cIShWf
  • НаукаНаука

Комментарии • 174

  • @jessejayphotography
    @jessejayphotography 10 месяцев назад +24

    This is how I always wanted to use VIM back in my university days. I think removing cognitive overhead and the number of core commands is a huge win and gets us closer to the simplicity of what a mouse offers with see, click, action

    • @codetothemoon
      @codetothemoon  10 месяцев назад

      agree 💯. Recently I've been using avy in emacs which is great, but isn't quite as good as leap imo

  • @Geeraf999
    @Geeraf999 Год назад +50

    This is amazing. I couldn't understand this concept with sneak, etc. So I just kept using hop. I'll have to take a leap now.

  • @zombiesalad2722
    @zombiesalad2722 Год назад +10

    The jump to splits is flipping awesome!

    • @codetothemoon
      @codetothemoon  Год назад

      I agree! I'm currently using something called avy in emacs to do something similar, but the experience isn't quite as good as what Leap provides.

  • @returntosender9778
    @returntosender9778 Год назад +7

    Thinking about optimising for the number of keystrokes is not what I expected my day to look like. Love your videos.

  • @geoffreyvanwyk4588
    @geoffreyvanwyk4588 4 месяца назад +3

    It was a good idea to compare the plugin with default functionality to show the value of it.

  • @EmileNani
    @EmileNani Год назад +5

    Definitely going to add this plugin and start using it. Was looking for a plugin to help me get into these motions. This is it

  • @MrKeebs
    @MrKeebs Год назад +48

    Just for a change, distilling complexity into palatable pills for us lazy devs. Leap looks amazing, thanks again for yet more extremely useful content!

    • @codetothemoon
      @codetothemoon  Год назад +5

      Thanks MrKeebs! I think laziness can be a virtue in our field 😎

  • @cagrsakaoglu5589
    @cagrsakaoglu5589 Год назад

    Thanks for sharing, great plug in 🎉

  • @vintagewander
    @vintagewander Год назад +5

    This blown me away about how effective this plugin does! Very simple, but very effective, makes my brain 1 less vim combo to jump, I guess I should take a leap

  • @JacquesvanWyk
    @JacquesvanWyk 5 месяцев назад +1

    This is exactly what I am looking for. I was starting to use vimium for browser and it does like similiar thing with f key and clicking on links. Thanks for video

  • @jamesmillsnicholas7813
    @jamesmillsnicholas7813 Год назад +6

    I use leap it's great.
    But Vim's native search has some awesome features:
    Navigate matches easily:
    n ➡ next match
    N ⬅ previous match
    2n ⏩ 2 matches forward
    2N ⏪ 2 matches backward
    Jumplist integration for quick navigation:
    c-o 🔄 move backward through visited matches
    c-i 🔄 move forward through visited matches
    Can be used as a motion so for example, you can edit matches directly:
    dn ✂ delete up to next match
    d2n ✂ delete up to 2nd next match, and so on
    dN ✂ delete up to previous match
    d2N ✂ delete up to 2nd previous match, and so on
    Give native search a try and improve your Neovim workflow! 🚀

  • @charlesbcraig
    @charlesbcraig Год назад +2

    This how the vim bindings chrome extension works. It’s my most used chrome shortcut!

  • @sensor
    @sensor Год назад +4

    This is insanely good

    • @codetothemoon
      @codetothemoon  Год назад

      assuming you're talking about Leap - I agree! If that's not the case and you're referring to the video - I still agree! 🙃

    • @sensor
      @sensor Год назад

      @@codetothemoon both things

  • @oconnor663
    @oconnor663 Год назад +4

    I saw Leap come up on Hacker News, and for whatever reason I just couldn't understand from reading about it how it was different from Sneak. Very clear on video. Thanks!

    • @codetothemoon
      @codetothemoon  Год назад

      Thanks Jack, glad you found it valuable!

  • @nikbivation
    @nikbivation Год назад +1

    this is eye opening for someone new to neovim!

  • @rodelias9378
    @rodelias9378 7 месяцев назад

    Amazing video! Thanks!!

  • @ascourter
    @ascourter 8 месяцев назад +1

    Recently started using this plugin. Definitely saves a ton of keystrokes!

    • @codetothemoon
      @codetothemoon  8 месяцев назад +1

      Nice!! That was my take on it as well

  • @slava_in3757
    @slava_in3757 Год назад +1

    Definitely going for this one. Have been missing such a feature since I left VS Code with MetaGo plugin installed

    • @pixelsbyme
      @pixelsbyme Год назад +1

      Thank you for introducing me to metago

  • @irlshrek
    @irlshrek Год назад +1

    god damnit another kickass tip. This is a game changer...no more helix

  • @RoryDavidWatts
    @RoryDavidWatts 9 месяцев назад +1

    Great video, thanks!

    • @codetothemoon
      @codetothemoon  9 месяцев назад

      glad you liked it, thanks for watching!

  • @hpn1427
    @hpn1427 Год назад +5

    2 AM in the morning...
    her: he must be out cheating
    me: I am becoming a neovim kangaroo!

  • @aliventurous
    @aliventurous 3 месяца назад

    This should be the new default way of navigating in vim. So much more intuitive than relative numbers, with the added benefit of jumping directly to the character you want to land on.

  • @BorisBrodski
    @BorisBrodski Год назад +2

    Using lightspeed, I'm really excited to try leap 👍

    • @BorisBrodski
      @BorisBrodski Год назад +3

      It's great, even better than lightspeed 😃

  • @redumptious2544
    @redumptious2544 Год назад +3

    Holy shit.
    I was briefly confused why there where some labels multiple times and then it hit me and I LOVE it.
    Just from a technical and usability standpoint that’s so awesome.

    • @codetothemoon
      @codetothemoon  Год назад +1

      Agree 💯 - sometimes I feel like I am controlling the cursor with my mind 🙃

  • @jwickerszh
    @jwickerszh Год назад

    Cool, I have Hop and Lightspeed installed, I might just replace them and try to use it more.

  • @lpanebr
    @lpanebr Год назад +1

    I never considered the other plugins. But this is really nice

  • @temporary_terpenes
    @temporary_terpenes Год назад

    Cool plug. I'll give it a try! Also I couldn't help but notice your incorrect use of "preceding" - I think postceding is the word you are thinking of.

  • @aidanium
    @aidanium Год назад +5

    I had always wondered why there wasn’t vertical version of f and t. I guess there kind of is with this!

  • @LeungWong
    @LeungWong Год назад +1

    I guess with leap or other similar motion plugin you are only jumping around the the visible part and for other cases you still need to use / to find.

  • @0thLaw
    @0thLaw 5 месяцев назад

    Have you tried Hop and how would you compare these two?

  • @olexiilysenko2544
    @olexiilysenko2544 7 месяцев назад

    Thank you for sharing the experience with the new useful plugin, but what about the easymotion plugin? I use it for a long time and it's quite cool.

    • @faruzzy
      @faruzzy 4 месяца назад

      Yeah, I'm not sure how this is an improvement to easymotion as well and would have to experiment to find out.

  • @geoffreyvanwyk4588
    @geoffreyvanwyk4588 4 месяца назад

    I am used to EasyMotion, so Leap placing the label on the third character was confusing, but it does make sense to not obscure the target.

  • @VioletJewel1729
    @VioletJewel1729 Год назад +5

    first example: L{-d/chain_ then press Return ... Ctrl-o twice to get back ... you don't have to think, you just move (if you know how to use vim) ... learn to navigate vim/nvim better and use ex commands more effectively, and you will eliminate most of your plugins. And yes, I use basically all of the movement commands like this probably four-thousand times per day. I just "speak vim". Yes, I know no one starts there, but that's the beauty of [n]vim. maybe if you try to keep learning and avoiding plugins (more often than not), you can also keep improving.

    • @gauff3r
      @gauff3r 7 месяцев назад

      Nope, `-d/chain_` will delete everything from the start of the line up to but not including the `chain_`. Also if we there is no `chain_` it's gonna be wild deletion!

    • @VioletJewel1729
      @VioletJewel1729 7 месяцев назад

      @@gauff3r /chain_dgn or /chdf_ or a billion other things

  • @richardbennett4365
    @richardbennett4365 3 месяца назад

    The character that comes after "c," the "h," would be the character that FOLLOWS the first one, not the one that PRECEDES the first one.

  • @umop3plsdn
    @umop3plsdn Год назад

    wow the concept of colored groups is COOL! BUT I wish they used that for the previous and after instead of using capital S s respectively. But cool nonetheless

  • @michaelmueller9635
    @michaelmueller9635 Год назад +2

    I didn't like the plugin until I used the plugin vimium in firefox, which does ruffly the same when browsing threw the internet. I really like it because i dont have to move my hand for the mouse.
    At this point, I began to like the 'sneak' plugin, but it got 1 disadvantage: You can't combine it with other vim moves.

  • @garciajero
    @garciajero Год назад

    the real save is focusing the relative line number which is quite an effort, i still don't know if this is worth a plugin

  • @Rundik
    @Rundik Год назад +1

    So it's like easy_motion in normal vim

  • @billeterk
    @billeterk Год назад +4

    I’d need to think of a suitable key to use instead of ‘s’. I know there are alternatives to ‘s’ in normal mode but it’s just too ingrained. I do like the general idea though and use a similar, less refined way to follow web page links (f/F with the Vimium extension)

    • @Tijme
      @Tijme 4 месяца назад

      Have you found a good key for this, I’ve got the same problem

    • @billeterk
      @billeterk 4 месяца назад

      @@Tijme no, I'm just accustomed to non-optimal horizontal movements now!

    • @billeterk
      @billeterk 4 месяца назад

      @@Tijme if I were to install and use this, I'd probably try 'q'. I don't use that for much - just 'Q' as a shortcut for 'gq'. No good if you use macros a lot though...

    • @aliventurous
      @aliventurous 3 месяца назад

      I'm liking how LazyVim uses / for leap. Then you could map s back to substitute.

  • @Danielo515
    @Danielo515 Год назад +1

    Do you explain it very well thank you very much for it because the author of the plug-in didn’t made a very good work at that. However, I still prefer pounce. It allows me to jump back-and-forth, also between splits, and I can type as much or as few as I need

    • @codetothemoon
      @codetothemoon  Год назад +1

      thanks glad you got something out of it! I hadn't heard of Pounce, maybe I'll check it out 😎

    • @Danielo515
      @Danielo515 Год назад

      @@codetothemoon I recommend it to test it. It al boils down to your mental model, but for my way of thinking pounce is a better fit

  • @laughingvampire7555
    @laughingvampire7555 3 месяца назад

    emacs has a similar plugin, and when it runs out of letter in the alphabet uses 2 letter labels.

  • @Joqer88
    @Joqer88 3 месяца назад

    What font are you using here?

  • @omentaelvis
    @omentaelvis 11 месяцев назад +1

    I was reading Lazy nvim keybindings and spotted leap keybindings, didn't know what it was.

    • @codetothemoon
      @codetothemoon  11 месяцев назад

      it's cool that LazyVim includes Leap out of the box! When I made this video I actually hadn't tried any of the nvim config frameworks yet, but I think now I may be using something like NvChad or LazyVim when I'm not using emacs

  • @npquintos1
    @npquintos1 Год назад +1

    Didn't it break your 'change' 'till' command? In my case, if I type 'ct' while in normal mode, it did not do the expected action; I deleted this plugin and it started working again.

    • @codetothemoon
      @codetothemoon  Год назад

      Weird I didn't have that problem - the only thing that "broke" for me were the original functions of 's' and 'S', which doesn't really matter because 'cc' and 'cl' do the same thing

  • @rezahandzalah
    @rezahandzalah 9 месяцев назад

    I kind of live with the problem that the plugin author wants to solve. My tricks: Skip pressing n multiple times using L, maybe M or }, then n when it's nearer.
    Search for boundaries, not beginnings. By first instinct I'd type /_ch in that first example. Jump to `fn load....` with /n l instead of /lo

  • @ranger.1
    @ranger.1 Год назад

    Reminds me of Vimium

  • @tandlose
    @tandlose Год назад +7

    you forgot my favorite option. jjjjjjjjjjjjjwwwwwwlllllllllllllllllllll

    • @SAMathlete
      @SAMathlete Год назад

      This man vims

    • @31redorange08
      @31redorange08 Год назад

      And my favorite option. Ctrl+C, Ctrl+C … Reboot via power button. Open the file in a different editor. Click where you want to set the cursor.

    • @tandlose
      @tandlose Год назад

      @@31redorange08 ye honestly this guy is like "oh wow this method is 8 keys and this is 7 keys", bruh mouse is one key instantly there

  • @korigamik
    @korigamik 7 месяцев назад

    But i love using the s key for substitute as in default vim. Which key should i map leap to?

    • @aliventurous
      @aliventurous 3 месяца назад

      you could map leap to any key you don't use in normal mode like ; for example
      in my case i like using s for leap as i search more often than substitue, but can still substitute by typing cl

  • @matthewscott336
    @matthewscott336 Год назад +1

    This looks great, but I am worried about conflicts with sandwich (similar to surround) with the use of the "s". Not sure how to remap things.

    • @matthewscott336
      @matthewscott336 Год назад +1

      I found using z maybe for the leap plugin would make sense.

    • @codetothemoon
      @codetothemoon  11 месяцев назад +1

      I haven't personally used sandwich so I'm not sure. I believe I was using only the default key bindings when I was using Leap. I heard Flash.nvim is all the rage these days, but I haven't tried it yet...

  • @broom7294
    @broom7294 6 месяцев назад

    whats the font you're using

  • @davidgolembiowski4275
    @davidgolembiowski4275 Год назад +1

    Does anyone else just use builtin (neovim|vim) sed replacement? It's a feature I use daily since it supports backreferences

  • @thepaulcraft957
    @thepaulcraft957 Год назад +5

    Which colorscheme and font is this? looks great

    • @codetothemoon
      @codetothemoon  Год назад +3

      Plug 'sainnhe/sonokai'
      colorscheme sonokai
      😎
      font is Monaco

    • @thepaulcraft957
      @thepaulcraft957 Год назад

      @@codetothemoon thank you very much!

  • @BraxtonMeyer
    @BraxtonMeyer Год назад +1

    This just looks like avy for (neo)vi(m)
    Always funny watching y'all (re)discover classic emacs packages in your ecosystem

    • @codetothemoon
      @codetothemoon  Год назад +1

      I've actually started using emacs recently (and I think I might be hooked). I had been wondering about the equivalent to Leap in emacs, I'm definitely going to be checking out avy!

  •  Год назад +1

    I use hop and didn't know about leap. Now I'm confused 🙂 A comparison would be useful.

    • @TheOneFoolishMan
      @TheOneFoolishMan Год назад +1

      Leap tries to be smarter about not needing labels if it doesn't have to. I've tried leap but prefer hop because it has a consistent workflow by always showing labels unless there's exactly one match.

  • @astrolemonade349
    @astrolemonade349 Год назад

    Hey! What do you think about creating a Discord server for your channel?

  • @aloispichler2159
    @aloispichler2159 8 месяцев назад +1

    Is this better than vim-easymotion?

    • @codetothemoon
      @codetothemoon  8 месяцев назад

      my understanding is that it's intended to be a successor of sorts to vim-easymotion, but I haven't tried it so I can't say for sure whether it achieves this

  • @Heshamelfakharani
    @Heshamelfakharani Год назад +1

    do you use nvim for knowledge management? if so then how

    • @codetothemoon
      @codetothemoon  Год назад +1

      great question - currently no - for better or worse I currently use Notion, which I actually love. But I foresee myself switching to something like org mode in the near future, though I'm not entirely sure with which editor - possibly nvim. I'll probably make a video about this once the dust settles!

    • @Heshamelfakharani
      @Heshamelfakharani Год назад

      @@codetothemoon would like to see that, im using obsidian and used notion for a while. i wish i could have obsidian inside neovim

    • @BurningR
      @BurningR Год назад +1

      @@Heshamelfakharani You can, almost - use telekasten, it's great

  • @qnprogrammer
    @qnprogrammer 9 месяцев назад +1

    I use the standard 's' a lot. If I used this plugin, I'd map it to another character instead.

    • @codetothemoon
      @codetothemoon  9 месяцев назад

      I think 'cl' does the same thing - would you be using that functionality more than Leap movements?

  • @serene-dev
    @serene-dev Год назад +2

    It is remapping standard s and S keys, I use s with sandwich plugin, and I use S a lot, probably I can change them to leader-s and leader-S.

    • @codetothemoon
      @codetothemoon  Год назад +1

      I initially had issues with this as well, then I realized cc does the same thing as S!

    • @serene-dev
      @serene-dev Год назад

      @@codetothemoon good to know, thanks

  • @winter_light
    @winter_light Год назад +2

    I have enabled mouse support. I simply click on on c in choice and do a `dw`. Just a click and one motion. No plugin needed. No mental overhead.

    • @codetothemoon
      @codetothemoon  Год назад

      Different folks prefer different tradeoffs and I think that's ok! Personally I find moving my right hand between the keyboard and the mouse extremely expensive compared to tapping a few keys on the keyboard. Of course on a time scale of a few minutes it's not ultra perceptible, but when considered in the context of an 8-10 hour workday, for me the difference in speed and fatigue is huge.

    • @winter_light
      @winter_light Год назад

      @@codetothemoon Respect that. Every workflow is different and it's a good thing to have many choices that can cater to different styles. More power to you.

  • @hernantz
    @hernantz Год назад

    Is there something like this for vscode?

    • @okay_ic
      @okay_ic Год назад

      Yeah, easymotion vim plugin is included in vscode-vim. Or, if you don't want to use vim in vscode, you can you Code Ace Jumper plugin.

    • @aquepaique
      @aquepaique Год назад

      use the mouse

  • @jonathancamarena3117
    @jonathancamarena3117 Год назад +3

    This seems like easymotion

    • @codetothemoon
      @codetothemoon  Год назад

      yeah very similar idea, with a slightly different approach that some may prefer

  • @nickshv8727
    @nickshv8727 Год назад +1

    Better than hop

  • @geoffreyvanwyk4588
    @geoffreyvanwyk4588 4 месяца назад

    Why not just type n immediately after typing sc?

    • @geoffreyvanwyk4588
      @geoffreyvanwyk4588 4 месяца назад

      It seems this method allows Leap to use duplicate labels when there are more matches than the alphabet.

  • @carriagereturned3974
    @carriagereturned3974 Год назад

    i use touchpad :)

  • @flamendless
    @flamendless Год назад +1

    But i thought you use emacs

    • @codetothemoon
      @codetothemoon  Год назад +1

      touche! I use whatever editor I prefer at the time, and that has definately fluctuated a bit in the past year or so 😎

  • @AbhinavKulshreshtha
    @AbhinavKulshreshtha Год назад +97

    I just use my mouse to click on the word where I want my cursor to be.. 1 click.

    • @codetothemoon
      @codetothemoon  Год назад +33

      Next level! 😎

    • @oktokt
      @oktokt Год назад +33

      But you also moved your arm, plus have to move it back to get to where you were. So 3 moves? (Arguably larger/intensive movement too...)

    • @returntosender9778
      @returntosender9778 Год назад +13

      @@oktokt How about you keep your fingers on the keyboard while using your thumbs on the touchpad... solved?

    • @eshansingh1
      @eshansingh1 Год назад +12

      @@returntosender9778 the precision of that will be much lower than with a mouse, and will still be slower than using vim motions

    • @aquepaique
      @aquepaique Год назад +6

      @@returntosender9778 using thumbs on touchpad is uncomfortable af

  • @DiegoJutsu
    @DiegoJutsu Год назад +1

    or just double click the word in vscode/sublime text editor and hit delete ? what's so wrong with the mouse guys, for real

    • @codetothemoon
      @codetothemoon  Год назад +2

      I don't think the problem is with the mouse specifically. For me at least, the issue is the overhead of switching back and forth between the mouse and keyboard. It doesn't seem like much when looked at in isolation, but when you're doing it 1000 times in a day, pruning it out of your workflow becomes incredibly freeing. It's something that's really hard to quantify the benefit of, which I think is why most folks are still using the mouse.

    • @DiegoJutsu
      @DiegoJutsu Год назад

      @@codetothemoon dang I think I will try this at some point. there's just so much more I want to learn that I don't want to go into yet another tangential rabbithole :D

  • @eddwinpaztl
    @eddwinpaztl Год назад

    I would do this :%s/_chain_file/_file

  • @lassebq1
    @lassebq1 Год назад +1

    I know vim community has a different mindset... but..... why can't you just drag the mouse over to where you want your cursor to jump?

    • @codetothemoon
      @codetothemoon  Год назад +1

      because of the overhead of shuttling your hand between the mouse and keyboard. Wouldn't be an issue if you were only doing it ~10 times a day, but when you're doing it hundreds or thousands of times a day, it becomes pretty incredible to be able to just keep your hands on the keyboard the entire time

  • @RupluttajaGames
    @RupluttajaGames Год назад

    seems somewhat clunky, as you need to wait for and process visual feedback.

  • @pushqrdx
    @pushqrdx Год назад +2

    it's pretty much easymotion too

    • @codetothemoon
      @codetothemoon  Год назад +1

      yeah i should have mentioned that one! like the other predecessors it does seem to have a bit of an edge over it too

  • @Tomyk9991
    @Tomyk9991 Год назад +1

    "Is there already something out there". Its called a mouse 😂

  • @VioletJewel1729
    @VioletJewel1729 7 месяцев назад

    I notice a lot of people [still] obsessing about key strokes. I am more worried about expending mental energy. When I want to do something, I need to do it without thinking, so I can focus on the task. I have found that as I learned to use the defaults of vim better, I was able to "speak" to the editor without thinking. Even though something like L{kf_;ld; seems like a lot of key strokes, to me this is a very simple sentence that reads "go to last blank line before bottom of screen" (`L{`), then "go up a line" (`k`), then "find '_' and then go to the right of the next '_'" (`f_;l`), and finally "delete until the next '_' that was already matched" (`d;`). I, personally, don't have to think about that at all. It is like speaking English. Okay, it was very "verbose" compared to 4 key strokes, but it is way more general and I can type pretty fast. When you are writing English sentences in prose, do you think about how many key strokes you could save by copying and pasting the word "the"? No, you don't. I don't think this plugin is useless, but I think that there is an emphasis on saving key strokes when the emphasis should be on timeliness and mental energy conservation.
    And if you want to vim golf things for no reason other than it's fun or you like to get things to be as short as possible L?chdf_

  • @itellyouforfree7238
    @itellyouforfree7238 8 месяцев назад +1

    you kept saying "preceding" instead of "following"

    • @codetothemoon
      @codetothemoon  8 месяцев назад

      thanks - turns out i made up my own word. I thought "proceding" was actually a word that meant after, just like "preceding" means before. turns out there is no such word. kind of embarrassing 🙃

  • @superXwhiteXninja
    @superXwhiteXninja Год назад +2

    :%s/chain_\(file(\)/\1/g
    Now it's fixed everywhere else you made the same mistake too! I'm not sure like this plugin. You already have H/M/L to jump to positions on the screen. On this case originally, the function you were trying to change was really close to the middle, so you could just do M5W and be very close to the spot you're trying to edit in 3 key strokes.
    Also, with a bit of regex practice, you could search for ch.*_ to uniquely jump to that exact spot and skip over the similar alternatives

  • @MichaelMantion
    @MichaelMantion 9 месяцев назад

    This is only useful if you are intelligent and want to save time and get more done.

  • @serpico3w767
    @serpico3w767 Год назад +2

    If you just showed leap I would've gone "wow awesome"
    You didn't have to show that you're bad at vim lol

    • @codetothemoon
      @codetothemoon  Год назад +1

      Ouch! What can I do to improve?

    • @serpico3w767
      @serpico3w767 Год назад

      @@codetothemoon try :h smile

    • @codetothemoon
      @codetothemoon  Год назад +1

      @@serpico3w767 I've used it - was there something I did sub-optimally in the video? I'm always looking to improve!

    • @serpico3w767
      @serpico3w767 Год назад +1

      @@codetothemoon you have jumped several times in the first method. You could've done it in 1 if you had searched for n_f

    • @codetothemoon
      @codetothemoon  Год назад +1

      @@serpico3w767 searching for n_f would be 5 keystrokes, not 1 right? Definitely better than 8 - but the point here is there might be code between your cursor and the target that may make getting there efficiently via a search infeasible.

  • @ColinDdd
    @ColinDdd Год назад +1

    any idea why when I hit "s" it tries to go into insert mode? I tried to use this as my packer config
    use {
    'ggandor/leap.nvim',
    config = function()
    require('leap').add_default_mappings()
    end,
    }

    • @ColinDdd
      @ColinDdd Год назад

      nvm I fixed it...required putting the add_default_keymaps in another file, didn't like it being in the "config" there at least in my case

    • @codetothemoon
      @codetothemoon  Год назад

      Nice, glad you were able to get it working!

    • @ColinDdd
      @ColinDdd Год назад

      @@codetothemoon thank you :) have delved further into your channel since posting, great rust content!

  • @joaquindomenech7541
    @joaquindomenech7541 Год назад +1

    I prefer Hop.nvim

    • @codetothemoon
      @codetothemoon  Год назад

      I haven't tried it - maybe I'll check it out!