Helix 🧬 the Rust Powered Development Environment

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 23. 07. 2024
  • A quick tour of the Helix text editor / development environment, which is written in Rust. It's very similar to vim, but removes a substantial amount of configuration complexity and takes a slightly different approach with ergonomics.
    00:00 Helix Intro
    01:10 Themes
    01:30 Modes
    01:42 Opening A File
    02:32 Normal, Insert and Visual Modes
    03:25 Syntax Highlighting
    03:35 Moving Around
    03:50 Changing Key Bindings
    04:24 Helix Mindset (highlight first)
    05:35 Visual Mode
    05:58 Select Mode
    06:25 t and f Motions
    07:07 Yanking (copying) and Pasting
    07:54 Language-Aware Motions
    08:42 Space Mode
    10:12 Goto Mode
    11:11 R Motion
    11:50 Registers
    12:29 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
  • Věda a technologie

Komentáƙe • 411

  • @codetothemoon
    @codetothemoon  Pƙed rokem +77

    ERRATA: Around 5:15 I mention that deleting a previous word is easier in Helix because in vim you'd have to do 'bdiw'. But it turns out in vim you can actually just do 'db' to achieve the same thing as 'bd' in Helix! Thanks to Pranav P.A for pointing this out.

  • @tanzboden
    @tanzboden Pƙed rokem +139

    Using vim for 25 years now. An in my opinion, the people behind helix made some very good decisions. The philosophy selection>action really makes sense. The editor is a joy to use.

    • @codetothemoon
      @codetothemoon  Pƙed rokem +10

      Nice, I was pleasantly surprised by it as well. It's great to hear from folks with your experience, as I'm still a vim newbie so my perspective is a bit limited!

  • @spaceyfounder5040
    @spaceyfounder5040 Pƙed rokem +106

    I'm so tired of vim configuration and plugins. Now it's the right time to bin it.
    You create such a useful and informative content - it's even hard to describe. Thanks for that and wish you and your channel to grow!🎉

    • @codetothemoon
      @codetothemoon  Pƙed rokem +5

      Thanks so much, I really enjoy hearing things like this :) more to come

  • @MrKeebs
    @MrKeebs Pƙed rokem +143

    This kind of video is extremely useful. It’s like someone is chewing hard to digest food for you. Seriously, I tried Helix a couple of weeks back but didn’t have the patience to stick to it. This made me want to give it a shot again. Thank you for this and for all the videos you do, they honestly do a lot of difference. Keep it coming and thank you so so much for what you do.

    • @edgeeffect
      @edgeeffect Pƙed rokem +2

      If it takes any effort at all to use an editor.... that editor stinks.

    • @herbertwestiron
      @herbertwestiron Pƙed rokem +53

      @@edgeeffect yeah good luck living life with that philosphy.

    • @codetothemoon
      @codetothemoon  Pƙed rokem +4

      Thanks so much for the kind words MrKeebs! I love doing these and hope to continue doing so for as long as I can.

    • @codetothemoon
      @codetothemoon  Pƙed rokem +25

      edgeeffect I think editors should always make a best effort to reduce friction for newcomers, but I think the most productive / ergonomic editors will deliberately trade "beginner friendliness" for said productivity and ergonomics, because in many cases you can't have both.

    • @pookiepats
      @pookiepats Pƙed rokem

      @edgeeffect he torched your ass

  • @LongestYardstick
    @LongestYardstick Pƙed rokem +11

    Appreciate this video getting more visibility on Helix -- I have used it periodically and have a history with Neovim, this editor is insanely good and deserves attention.

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      Thanks LongestYardstick! I agree that Helix has massive potential

  • @gamcd
    @gamcd Pƙed rokem +88

    I used helix for a long time and still love so many aspects of it, there were just some annoyance I had that I didn’t know how to fix due to lack of plugin support. It’s still my favorite way of using multiple cursors by far though, and a great project

    • @codetothemoon
      @codetothemoon  Pƙed rokem +24

      Yeah plugins are going to be huge - totally understand a reluctance to go all in on it before those come. I might be in the same camp - we'll see.

    • @katech6020
      @katech6020 Pƙed rokem +15

      They are working on plugins support using WASM

    • @aqilcontractor788
      @aqilcontractor788 Pƙed rokem +3

      I'd try out something called Lite-xl, it honestly almost has the best multicursor support I've ever seen.

    • @theherk
      @theherk Pƙed rokem

      @@katech6020 Maybe you are correct, but I'm not certain they've settled on wasm, though it is a top contender. There are three open topics anybody interested can check out: #122, #2949, and #3806.

    • @ExTex23
      @ExTex23 Pƙed rokem +3

      Maybe have a look at the kakoune editor, it inspired the helix selection order. But it has excellent support plugging in other tools.

  • @nieldrummond1538
    @nieldrummond1538 Pƙed rokem +31

    It's worth mentioning that language support depends a bit on the richness and out-of-the-box useability of the associated LSP - e.g. Rust/Go/Python/Js is amazing, Java/Scala not so much (though I did eventually get Metals working once...).

    • @codetothemoon
      @codetothemoon  Pƙed rokem +2

      Good point, I may mention this in a pinned comment

    • @Kiaulen
      @Kiaulen Pƙed rokem +1

      How is ruby? I've been unimpressed by it in VS Code

    • @jongxina3595
      @jongxina3595 Pƙed rokem

      yeah wish java was better cuz its what I use at work and intellij is just too power hungry

    • @bunny_the_lifeguard9789
      @bunny_the_lifeguard9789 Pƙed rokem +2

      Just rewrite it in Rust xD

  • @user-cl5wn9fz7f
    @user-cl5wn9fz7f Pƙed rokem +22

    Been using helix for 3 months now and im loving it

  • @Luxalpa
    @Luxalpa Pƙed rokem +5

    Was looking for an editor written in Rust mainly because I want something that I can extend later. This one's great, thanks!

  • @beetledjuice3062
    @beetledjuice3062 Pƙed rokem +3

    Thanks for this, Helix needs more people backing it up. It's an absolute joy to use.

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      thanks for watching! I agree it is fantastic. Personally I'd be using it as my daily driver if it had an evil mode....

  • @dwylhq874
    @dwylhq874 Pƙed rokem +4

    Superb overview of Helix, Ken. 😍
    This is _easily_ our favourite YT channel right now. 🚀

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      Thanks so much dwyl, happy you found it valuable!

  • @charlescabil7208
    @charlescabil7208 Pƙed rokem +2

    Would love it if you continue this series...the best thing i ever saw on CZcams❀

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      Thanks Charles! I Would love to do more of these.

  • @AceofSpades5757
    @AceofSpades5757 Pƙed rokem +20

    Everything about Helix is blazingly fast. Like actually ridiculously fast. I have huge projects where almost everything is instantly responsive.

    • @codetothemoon
      @codetothemoon  Pƙed rokem +2

      Nice, I hadn't tried it with a large project yet, it's comforting to know it'll hold up when I throw one at it

    • @fudgepuppy9683
      @fudgepuppy9683 Pƙed rokem +5

      This is definitely true. Can confirm. Weak computers don't even hold it back. I've seen 1500 loc lagging weak computers on vscode and even a bit of lag with nvim while Helix acts like it's just 15 loc.

    • @AceofSpades5757
      @AceofSpades5757 Pƙed rokem +1

      @@fudgepuppy9683 I haven't used a particularly weak computer. Good to hear! I assume a potential issue would be running the LSP(s) though. Not to mention installing them. I know rust-analyzer will eat up all my computers resources, so I could see that one being particularly annoying.

    • @Cookiekeks
      @Cookiekeks Pƙed 10 měsĂ­ci

      Same for vim

  • @sufilevy
    @sufilevy Pƙed rokem +16

    Thank you so much!
    I wanted to have a non-gui text editor that I could use, but I didn't have the time to learn vim/other editors, this seems like the perfect one!

    • @codetothemoon
      @codetothemoon  Pƙed rokem +4

      Nice! Yeah I think this might be a good place to start. Internalizing the motions will still take some time but at least you don't have to worry about configuration

    • @sids911
      @sids911 Pƙed rokem

      @@codetothemoon I actually agree with this. I haven't been interested in vim or neovim since the beggining, but I might try this out. This seems very intuitive to me actually after fiddling around with it.

    • @casualoutlaw540
      @casualoutlaw540 Pƙed rokem

      @@sids911 You should try vim some day too! It has a less intuitive act first, highlight later system but has a larger ecosystem and I find it more preferable until helix grows.
      PS: If you use any app, there's either vim keybinds for it or an alternative based on vim keybinds. It makes the vim experience really worth it.

    • @sids911
      @sids911 Pƙed rokem

      @@casualoutlaw540 I understand your point, I was looking for file tree if it was implemented... Fuzzy search is fine but I like seeing file tree sometimes. Ecosystem is pretty new I guess, and it will take time.
      I actually tried spacemac before but didn't like the default keybindings. I actually haven't tried neovim in real projects... Just fiddling around, I honestly hate setting up everything, I know there must be ways of pre-configured vim varients but haven't explored it. I am pretty good at doing things without mouse in general gui ide's so I wouldn't want to sink time into configuration of terminal based editors... Do you know any good ways to have it in vim/neovim?

    • @arcstur
      @arcstur Pƙed rokem

      ​@@sids911I've been using LunarVim for around 6 months and I really like it. Right now I'm considering switching to Helix. Being easy to configure was a really good selling point, and it's blazingly fast for real.

  • @KyleSmithNH
    @KyleSmithNH Pƙed rokem +7

    That register yank/paste behavior is identical to vim, but you didn't mention thet double-quote pops up a window which _shows_ the value of all your registers. That is amazing. Thanks for the overview, I'd spent some time trying to learn kakoune and eventually given up as it was quite far from vim and I wasn't able to get fast at it. Helix seems like a better compromise in basing so much on vim, except the key bits they wanted to improve on and baking in a ton of good defaults.
    Great video!

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      Thanks for watching Kyle! Agree that the visual reference of the contents of your registers is great.

  • @luccahuguet
    @luccahuguet Pƙed rokem +1

    Love the video! Been enjoying Helix a lot so far

  • @CyperN077
    @CyperN077 Pƙed rokem +1

    Thanks for posting this video. It's nice and explains a lot in such a short video.

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      Thanks for watching Cyper, glad you found it valuable!

  • @br4ndon364
    @br4ndon364 Pƙed rokem +1

    I just started using Helix last week, so glad I found this video

  • @pif5023
    @pif5023 Pƙed rokem +1

    Man, you have probably shown me the editor I was dreaming of! Giving it a solid shot, hope it works well with JS/TS projects

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      nice let us know what your experience is like!

    • @pif5023
      @pif5023 Pƙed 11 měsĂ­ci

      1 week in and I am already used to the new motions. Still some muscle memory to change but I got familiar with it faster then expected. Love the evil eMacs like commands Nvim doesn’t have, especially the ones related to file and buffers handling and lsp features. That is why I am interested in Helix. I have been using it only with Rust though, I still have to try it on a JS/TS project.

    • @pif5023
      @pif5023 Pƙed 11 měsĂ­ci

      Now I have a more thorough feedback. I am quite pleased with Helix, but it is missing a few key feature to be used out of the box as a VSC replacement in a bigger TS project. 1) multi lsp support, which may be incoming with the next release 2) global search an replace, this is a big one and I hope I haven’t missed it 3) tree view file picker, some times you need to see the structure of the file tree, I think this is also incoming with the next release.
      Perhaps I will contribute with the global search and replace, that’s something you need to have for speed of work.

  • @martinbecker1069
    @martinbecker1069 Pƙed rokem +4

    Ok, you've convinced me to give helix a try, I have to say I like that you have space mode and goto mode since they show you what you can do, whereas (n)vim requires a plugin or some other potentially action to get vim to display a list of what commands you can do.

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      nice, yeah it's worth taking for a spin. I love the visual reference as well - it really helps soften the learning curve because you don't have to constantly Google how to do things

  • @exponent42
    @exponent42 Pƙed rokem +3

    i've spent far too much time troubleshooting my nvim config when a lsp or plugin changes behaviour or poops the bed that i'm so grateful they exist. I admire the defaults set by the team too, there's no longer a need to reach for Jetbrains / vscode when something breaks while needing to be productive

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      I agree, looking at my nvim config makes me a little dizzy - sometimes an opinionated approach with great defaults is really refreshing

  • @NOPerative
    @NOPerative Pƙed rokem

    Awesome.
    Gonna be looking into Helix.
    Good vid!

  • @stillcinematic3163
    @stillcinematic3163 Pƙed rokem

    Excellent video! Keep up the great work!

  • @voxelltech
    @voxelltech Pƙed rokem +1

    Thanks for the video! This has been really insightful!

  • @anon3118
    @anon3118 Pƙed rokem +2

    This was exactly what I wanted out of nvim! I'm gonna try this out

  • @9SMTM6
    @9SMTM6 Pƙed rokem +38

    I've configured (like 3 lines so far, as well as installing a bunch of language servers) helix actually just last weekend. While I tested it, I never really committed to Vim long enough to see benefits, and Helix seems a lot harder to misuse, and as you said, it's a lot easier to configure.
    The only negative thing I've to say so far is that the default theme is IMO ugly and also not very helpful. But they have a bunch of default themes installed (which they should refer to in the documentation, I might create a pull for that) which include some nice and helpful ones.

    • @codetothemoon
      @codetothemoon  Pƙed rokem +3

      Nice! Yeah I agree the default theme is not something I would actually use, but it sure gives the feeling of "this is something completely different" in the promo material and screenshots. There are a TON of default themes included, I'd be shocked if you didn't find something you like.

  • @k1mpman
    @k1mpman Pƙed rokem +1

    Great video. Thanks a bunch! I've been learning vim for a few weeks now and maybe it's a good thing to try helix while im still a beginner

    • @fudgepuppy9683
      @fudgepuppy9683 Pƙed rokem +2

      Not a bad mindset. Most of it will carry over in either direction. Though do keep in mind that everything you'll run or remote into has vi at least so at least don't give up on going to an in term modal editor

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      Thanks! Yeah wouldn't hurt to try both, like fudge puppy mentioned many of the motions are the same so your effort won't be wasted even if you decide to switch back to vim

  • @minitrex4533
    @minitrex4533 Pƙed rokem +1

    This video really helped me. Thank you very much!!!

  • @fabyao
    @fabyao Pƙed rokem +6

    Great video! I would love to see another where you demonstrate your development workflow with Helix. Specifically check out a main branch, create a dev branch, stage, commit and push. Possibly show some unit tests and debugging scenarios? At the time of writing this, Helix doesnt have a folder view like nvim-tree. Nor does it have a builtin terminal. Helix is going in the right directions but not ready for my use case.

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      Thanks fabyao! as far as I know there is currently no git integration in Helix - that's being deferred to a plugin when the plugin infrastructure is in place. Same thing with debugging afaik. Generally speaking and to your point - until Helix plugins are a thing I think it's going to be missing some of the core non negotiable features many people need

  • @kennyfully88
    @kennyfully88 Pƙed 15 dny

    I'm a little green to both NeoVim and Helix but helix feels more of my style and it was very easy to set up and use even before knowing those cool tips you've showed. Thank you for better explaining everything because it made me realize that Helix is great for web dev

  • @ibgib
    @ibgib Pƙed 4 měsĂ­ci

    I've been playing around with Helix based on this video, and I'd say this is the experience that I expected with nvim + kickstart. There were lag + lsp issues with that though, whereas this has been relatively straight-forward. I'm having to learn some new motions that I've been using for the past decade, but those kinds of things are acceptable (probably good actually for the old brain). But it hasn't been erroring or crashing with a large project. So, so far so good đŸ€žđŸ™
    Thanks for the video!

  • @maxreuv
    @maxreuv Pƙed rokem +1

    Excellent! Thank you for sharing

  • @Tala2n
    @Tala2n Pƙed rokem +1

    I'm tired of switching modes, thinking about the current mode, thinking about the clipboard before copy paste something from the web browser, or to the web browser...
    Finally I just bound the hjkl keys to cursor moves in my Howl editor, and I'm happy !

  • @owenquinlan6047
    @owenquinlan6047 Pƙed rokem

    Great video! Having a link to the github/webpage in the description when talking about these things would be handy tho!

  • @DigvijayPatankar
    @DigvijayPatankar Pƙed rokem +1

    Great video with a very good intro to helix.

  • @Rudxain
    @Rudxain Pƙed 4 měsĂ­ci

    Thank you for this video! I learned some new stuff (and refreshed existing memories (DRAM pun, haha)) even after reading the docs and using `--tutor` (I've practiced until the end of chapter 4, so I was missing out on a lot of stuff)

  • @beatraad
    @beatraad Pƙed rokem +1

    Thanks for the video!

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      thanks for watching, glad you got something out of it!

  • @8koi245
    @8koi245 Pƙed rokem +1

    had no idea how to open it lmao, and seems like the correct introduction to nonGUI IDE!

  • @irlshrek
    @irlshrek Pƙed rokem +1

    duuuuude! amazing find! getting this nowwww

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      Thanks Eran! Let us know what you think of it!

  • @yash1152
    @yash1152 Pƙed rokem +13

    -book-videomarks:
    0:48 [editor] line-number = "relative"
    1:30 Modes in hx (missed: view mode with z)
    2:21 vertical split with C-v (how to close that?)
    3:48 b for back word
    5:07 alt dot to redo
    6:24 , to go back to single cursor
    7:29 copy-paste in hx
    7:56 syntax aware motions in hx
    9:22 rename a symbol in space mode
    9:43 applying code actions suggestions from the LSP
    10:34 jump points: C-o, C-i
    11:12 R to replace selection with yanking
    11:49 registers
    there should have been some option to preview register

  • @DAV30371
    @DAV30371 Pƙed rokem +1

    I'd just like to say its the GOAT of text editors.

  • @michaelcarnevale5620
    @michaelcarnevale5620 Pƙed rokem +1

    i rly like that Helix just offers lsp and good UX right out of the box.. when helix includes a plugin system i will try it and maybe move over. for now tho i rly do like how configurable and expandable Neovim is.

  • @ThePandaGuitar
    @ThePandaGuitar Pƙed rokem

    Great, how do you find and replace a symbol across the entire workspace?

  • @ejazahmed4609
    @ejazahmed4609 Pƙed rokem +1

    Your content is top dynamic-island (notch. Really wanted to make this joke. haha) as always!! Thanks!
    What does your dev environment looks like for the projects you work on?

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      wow, i consider myself an Apple fanboy but I didn't know what dynamic island was until I looked it up. Shame on me 🙃 Seriously though, thank you! My dev environment is in a bit of flux right now as I'm trying tons of new stuff out. Up until this year it's primarily been IntelliJ, but going forward I think it's likely to be Helix or neovim. Once I converge on a setup that I'm really happy with I might do a video about it...

  • @dominiccasts
    @dominiccasts Pƙed rokem

    The one thing I can't figure out, and maybe it's because I'm on Windows and installed it the way I would any program, by unzipping the release folder somewhere, is how to actually find files. I cannot seem to explore the filesystem at all except maybe if I put a copy of Helix in the top level folder of whatever I'm trying to edit, which really doesn't work in practice.

  • @ditchcomfort
    @ditchcomfort Pƙed rokem

    Are there a Tokyo Night theme in Helix, and can you have indentation lines?

  • @Nikandlv
    @Nikandlv Pƙed rokem

    Keep up the good work!

  • @theodorealenas3171
    @theodorealenas3171 Pƙed rokem +4

    The presentation is amazing! I wish people were introduced to programming tools this way in general. Anything non 100% essential is associated with elitists.
    Helix looks catchy, it puts up front what one would need. It gives me ideas on how to configure NeoVim better. The Toml configuration convinces me to refactor my NeoVim configuration to make it more similar. And why haven't I made key bindings for going to common configuration files

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      Thanks Theodore, glad you found it valuable! Yeah I find the Helix toml so refreshing after wading through my 200+ line Neovim configuration...

    • @theodorealenas3171
      @theodorealenas3171 Pƙed rokem

      @@codetothemoon Yeah. I noticed though, LUA's
      local loop_these_leader_maps = {
      e = ':cd ~',
      t = 'a{}O',
      }
      can look similar to a Toml. Except the commas, and the loop that will be in the end. So that's what I ended up doing.
      I'm not saying it's superior. Helix took the slick and fool proof approach.
      Though I would vote for an init like script...
      But Toml works.

  • @kushalmondal618
    @kushalmondal618 Pƙed 6 měsĂ­ci

    I was trying out some simple projects with golang with helix...(really love the Bindings and processes).... though i have enabled the lsp support for in the config(overriding default true),, i was previously getting some common snippets. like main snippets for the whole function body.... or fp for fmt.println(), but suddenly i could get those... i have save, refreshed and even commanded the lsp-restart... but no response...... any thing bad happened on my site or is snippets are really hard to find in helix yet...

  • @dmurphydrtc
    @dmurphydrtc Pƙed rokem

    Great content. Thanks

  • @reed6514
    @reed6514 Pƙed rokem +6

    This looks cool. I use SpaceVim (on top of neovim) and am happy. No reason for me to switch, but helix could be good for new users or those interested in learning stuff.

  • @HalfMonty11
    @HalfMonty11 Pƙed rokem

    dang... I really want to try this but don't use a non-standard keyboard with colemak layout and I can only imagine the shortcuts will not work well

  • @AlfanNurFauzan
    @AlfanNurFauzan Pƙed rokem +1

    hey thanks for sharing. really appreciate it.
    do you use helix in daily programming activities?

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      I did for a bit after making this video, but eventually switched back to neovim, then later doom emacs. Likely going to be using doom emacs for the foreseeable future, but I am planning to revisit Helix after they add plugin support. I still think it's a fantastic editor.

  • @nerdy_dav
    @nerdy_dav Pƙed rokem

    I've had a good play with this and the only feature I miss is the mark function. I can't seem to find it in Helix... otherwise it's awesome.

  • @JasonJurotich
    @JasonJurotich Pƙed rokem +1

    In vim you had the inlay suggestions from clippy. Is there a way to have that in helix?

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      Currently I think the answer is no, hopefully this is supported prior to the plugin architecture being built out!

    • @JasonJurotich
      @JasonJurotich Pƙed rokem

      @@codetothemoon yes! that and snippets and soft-wrapping the text, both of which are also missing. Three more things needed before being able to switch from Vim or VS Code, but looking good though.

  • @sergiuoanes4635
    @sergiuoanes4635 Pƙed rokem +5

    I'm happy more people start to talk about Helix. It has a great future. Looking forward to switch from nvim, just tired of pluggins

    • @LuismaLorca
      @LuismaLorca Pƙed rokem

      If you're used to vim/nvim, helix is simply a downgrade. What really would have potential is if they made a fork of helix and upgraded it to standard vi motions.

    • @theherk
      @theherk Pƙed rokem

      @@LuismaLorca Why fork instead of allowing configuration to set other key maps? Also, I don't see why that would be an improvement, but if you want vi motions, there are plenty of editors with them. At any rate, supporting them probably would expand adoption, but a fork is definitely not required.

    • @LuismaLorca
      @LuismaLorca Pƙed rokem

      @@theherk It would need to support a single config line to switch from kakoune to vi. If we had to write an entire config only to use vim, it would defeat the purpose of minimal config alternative... The problem is, the authors are very committed to kakoune keybinds, so I don't see such thing happening. It's respectable and it's their project, but it will never become as popular as it could have been with their philosophy...

    • @theherk
      @theherk Pƙed rokem

      @@LuismaLorca that is what I mean; a config to select which set of keybinds, not rebinding all individually. And I think it is possible it will come to that once plugins are supported and the community is a bit larger, but only time will tell. There has been some discussion about this exact topic, so there are others interested too.

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      I agree, looking forward to how Helix develops.

  • @duckhorse2563
    @duckhorse2563 Pƙed rokem +13

    Started using helix because Vs Code was getting slow. Got used to using a modal editor, and now I use nvim (lunarVim) as my editor of choice because of better plugin support.

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      Nice! Yeah plugins are super powerful, can't wait until Helix has them too.

  • @bbbaaa9421
    @bbbaaa9421 Pƙed rokem +1

    Nice detailed video on Helix, does renaming/refactoring works for file name, lets say if we rename file name "error.rs" to errors.rs, will it get replaced in main.rs with "mod errors" ?

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      Thanks! I'm actually not sure, i'd have to give that a try.

    • @bbbaaa9421
      @bbbaaa9421 Pƙed rokem

      @@codetothemoon I don't see many editors doing it, only available in IntelliJ, am not sure whether they have patented it , tbh. idk..

  • @glyakk
    @glyakk Pƙed rokem

    So far I like it as a reprive from neovim. I do not think I will completly switch since there are some 'quality of life' items that I have configured for myself and gotten used to, but if I was faced with the option of starting over with neovim or use Helix I would probably go with Helix if for no other reason then to reduce my dependance on plugins.

  • @PaulSebastianM
    @PaulSebastianM Pƙed 7 měsĂ­ci +1

    Helix is my favorite text editor now.

    • @codetothemoon
      @codetothemoon  Pƙed 6 měsĂ­ci

      Nice! ooc was it your first CLI based editor or did you using *vim or emacs prior?

    • @PaulSebastianM
      @PaulSebastianM Pƙed 6 měsĂ­ci

      @@codetothemoon vi, vim many years ago, nvim recently but soon found helix and simply find it more productive and intuitive and I personally feel faster in it.

  • @JohnAlamina
    @JohnAlamina Pƙed rokem

    It would be nice to share links to some of the resources used in your videos. For example the vim cheat sheet in this video.

  • @introspecticon
    @introspecticon Pƙed rokem +171

    This would be more enticing to me if the commands were a strict superset of vim by default

    • @codetothemoon
      @codetothemoon  Pƙed rokem +59

      Totally understandable - the thing I really struggled with when starting out was x and d - In vim x deletes a character, in Helix it highlights a line...

    • @adsick_ua
      @adsick_ua Pƙed rokem +26

      @@codetothemoon I've been arguing with contributors for some time and gave up coz they stick to kakoune editing model too hard and don't seem to leave it.

    • @dpgwalter
      @dpgwalter Pƙed rokem +95

      @@adsick_ua They made a decision for a highlight driven editing model at the very start of the project, so it's pretty understandable that they won't change it.

    • @LuismaLorca
      @LuismaLorca Pƙed rokem +4

      If I want to change the body of a function I have to mi{c instead of simply ci{. Big nope. It's a shame, it could be great.

    • @LuismaLorca
      @LuismaLorca Pƙed rokem +6

      @@dpgwalter In vim you can also highlight first. For example compare vi)c with helix mi)c. Except in vim you can also simply do ci), ciw, cip, etc. Doing highlight first would be doing i)c, iwc, etc. It doesn't need to be inconsistent for the sake of copying vim while reinventing the wheel.

  • @amirhosein_gpr162
    @amirhosein_gpr162 Pƙed rokem

    Thanks for the great video!
    Just a question, does it support inlay hints? If yes then could you please upload a tutorial for setting it up?

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      I don't think inlay hints are currently supported, but I'd bet on them coming at some point.

    • @amirhosein_gpr162
      @amirhosein_gpr162 Pƙed rokem +1

      @@codetothemoon You're right i think so too! Thank you for your response đŸ™đŸ„°

  • @Sam-vg7ny
    @Sam-vg7ny Pƙed rokem

    2:18 Could someone name the command for highlighting a file on the file picker?

  • @kamertonaudiophileplayer847

    Is it possible to take a bare Rust compiler? I want just rustc to compile Rust program. No Cargo and any crap like that?

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      I've never had a need for this, but it looks like it! check out doc.rust-lang.org/rustc/what-is-rustc.html

  • @andrepadez
    @andrepadez Pƙed rokem

    I'm going to give it a try. What do you use to show the keystrokes on your recordings? cheers

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      nice, let us know how you like it! Actually the titles with the keystrokes were manually added when editing the video, I think there might be a way to do this automatically (I think the Primeagen does something like this) but I'm not exactly sure how

    • @andrepadez
      @andrepadez Pƙed rokem

      @@codetothemoon thank you

  • @vikingthedude
    @vikingthedude Pƙed 11 měsĂ­ci +1

    I only just started using vim/neovim. Should I switch to helix before my muscle memory settles in?

    • @codetothemoon
      @codetothemoon  Pƙed 11 měsĂ­ci

      this is a tough one. The good thing is that there's tons of overlap between the two in terms of muscle memory, the main differences are the order in which you type things. So going one way or the other isn't a massive commitment like choosing between learning emacs (the defaults) or vim bindings is. If I had to choose, I'd err on the side of caution and start with the vim bindings, just because those are so much more ubiquitous at the moment (and will allow you to easily switch to something like emacs in evil mode if you'd like to).
      I'm still hopeful that Helix will implement a "vim mode", but last I checked there seemed to be vehement resistance to this amongst the maintainers.

  • @blessdarah1256
    @blessdarah1256 Pƙed rokem +1

    I tried it, but make me unlearn vim so I went right back to neovim and continued there.
    It's still a good idea to have an alternative though.
    Great content.

  • @maurolimaok
    @maurolimaok Pƙed 8 měsĂ­ci

    I'm on my first steps on Odin Project. This stuff will be very useful soon. Thanks.
    This geometric animated desktop of yours is awesome. Would you mind to tell how to do it?
    Big hug from Brazil. Thanks for the vĂ­deos.

  • @rodrigomartins3495
    @rodrigomartins3495 Pƙed rokem

    hello, I want to use helix as my code editor. Can you explain to me how I put autocomplete for, php, javascript and python. oh, and there's a way to install something like nerdtree and a syntax checker

  • @AmirHosseinHonardust
    @AmirHosseinHonardust Pƙed rokem +2

    I really love helix. I am using it during my day job along side vim. In general, in most cases it offers a smoother experience than my neovim setup. But it lacks a tree view file explorer for now which is kind of essential for when you are making a huge file structure or navigating one. For when I'm doing that , i temporarily use neovim.

    • @abuwabu
      @abuwabu Pƙed rokem +2

      It works beautifully in conjunction with xplr (FWIW)

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      Nice, yeah it's going to be amazing when plugin support is ready - I feel like the community is going to be fast to fill the gaps like this with plugins

    • @AmirHosseinHonardust
      @AmirHosseinHonardust Pƙed rokem

      @@codetothemoon the new trend to implement the plugin system in wasm is also really promising as well!

    • @AmirHosseinHonardust
      @AmirHosseinHonardust Pƙed rokem

      @@abuwabu does xplr offer something in particular that other tui file managers don't for this workflow?

    • @abuwabu
      @abuwabu Pƙed rokem +1

      @@AmirHosseinHonardust somethings, yes, like the ability to stay in create file/folder mode and build out structures of your file trees.

  • @kobibr9362
    @kobibr9362 Pƙed rokem

    Installed it: tried to fetch grammars, the fetch failed.
    Stdout:
    Stderr: error: The following untracked working tree files would be overwritten by checkout:
    I tried again. It fails because of a branch switch and it can not override changes. It does not log where it is checking out those files. I tried to find them. I did not find them. Gave up. Back to neovim in less than an hour.

  • @rajayonin
    @rajayonin Pƙed 9 měsĂ­ci

    What font are you using?

  • @AceofSpades5757
    @AceofSpades5757 Pƙed rokem +2

    I've been using Helix for a few months and it's extremely good. Sadly it's still missing a few things that I need as my main editor. I still use it whenever possible.

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      Understandable - yeah I think once plugins are supported it'll probably be more palatable for most people as their main editor

    • @digitaldisruptlabs
      @digitaldisruptlabs Pƙed rokem +1

      What are those elements that are missing? 😃

    • @AceofSpades5757
      @AceofSpades5757 Pƙed rokem

      @@digitaldisruptlabs Right now, I'm missing state persistence. If I leave Helix, all of my session's state is gone. This can be difficult to deal with while adjusting my workflow.
      Smaller things are like virtual text and soft wrapping. Usually, these aren't a big deal, but Vim has all these things in the form of plugins.

    • @stefankyriacou7151
      @stefankyriacou7151 Pƙed rokem +2

      @@AceofSpades5757 Out of curiosity, could tmux potentially solve your state persistence issue?

    • @digitaldisruptlabs
      @digitaldisruptlabs Pƙed rokem +2

      @@stefankyriacou7151 I was thinking the same, there is some Tmux plugins that saves your buffer and save it to disk. Tmux resurrect is the one I use... it saves mostly of the tools. I haven't try with Helix, but for sure I will mess around. Probably that can help on your workflow Ace

  • @MuStevenPlay
    @MuStevenPlay Pƙed rokem +1

    Woww! Subscribed at once :)

    • @MuStevenPlay
      @MuStevenPlay Pƙed rokem

      Also downloading helix and definitely giving it a try!! (from neovim 👍)

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      Nice, very happy to have you onboard!!

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      Let us know how you like Helix!

  • @digitaldisruptlabs
    @digitaldisruptlabs Pƙed rokem

    Amazing video, I tried Helix sometime ago, but it just simply did not catch me at first. After this video I just wanted to try it again :)

  • @maguilecutty
    @maguilecutty Pƙed 6 měsĂ­ci

    Shift { will allow u to move via Strucks or functions etc in vim

  • @dgurnick
    @dgurnick Pƙed rokem +1

    I love everything about this. The guys I work with: they will punch me.

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      Hey, nothing wrong with being the "black sheep" of the office!

  • @protocode_227
    @protocode_227 Pƙed rokem +1

    how does it tackle plugins / how is the economy 👀

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      Plugins don't exist quite yet, but I believe the current sentiment is that there will be a WebAssembly based plugin infrastructure at some point.

  • @yumbuboyumbubo8230
    @yumbuboyumbubo8230 Pƙed rokem +3

    I strugle to adapt to vim, mainly because I have to use eclipse at work... pflew...
    My main issues are:
    1 highlighting before editing is my thing
    2 I love multicursors
    3 I do want to copy and paste from/to other sources/targets using my mouse
    4 Costumizing is painful, copying someone elses confing also painful, cos its imposible to know their workflow.
    5 normal regex search?
    From the video helix could be my thing :D

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      Nice yeah re: #1 you'll definitely like Helix better. Everything else on your list I think is covered by Helix. Re: #3 space mode has motions to copy/paste to and from the system clipboard, so you should be good there as well.

  • @-aexc-
    @-aexc- Pƙed rokem +1

    I wish I could switch back to helix (it was my first tui text editor), but I cannot handle two sets of keybindings at once. and I need to use neovim because vim is the only text editors on things I ssh into

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      understandable, I think they really do need a vim mode of some kind.

  • @devopstoolbox
    @devopstoolbox Pƙed 7 měsĂ­ci

    Great video! I keep watching Helix content and playing with it and the thought I'm left with is "hmm this is basically neovim with no additional plugins available, and an opinionated refreshing look on normal/visual mode, that can easily be a neovim plugin..."
    So I'm thinking of Helix as a fully baked kickstarter neovim falvor with a slightly different approach to motions.
    Even the mentioned move between functions and structs is becoming very popular with text objects used by (most?) of the neovim community.
    What do you think?
    It kind of blows my mind that someone would sit an re-write Neovim from the ground in Rust just for that one tweak...

  • @pratushrai4991
    @pratushrai4991 Pƙed rokem +1

    Mine color scheme doesn't work the code is just white no syntax highlighting

    • @joem9575
      @joem9575 Pƙed rokem +2

      Make sure to `hx --grammar fetch && hx --grammar build`. If you built from source you also need to link/copy the runtime directory: docs.helix-editor.com/install

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      interesting I've never had this problem - in addition to what Joe said, do you have the language server of your choice installed (ie rust-analyzer)? Not 100% sure that's necessary for syntax highlighting, just something to verify.

  • @RuslanKovtun
    @RuslanKovtun Pƙed rokem

    It feels so wrong when you are watching at the keyboard. How will you use helix without touch typing?

  • @pinpox
    @pinpox Pƙed rokem +1

    I understand that having highlights as the main instrument might prevent mistakes, but it feels like unnecessary extra steps for the most common actions. I wouldn’t visually select a paragraph in vim to the delete it (vipd) even though you can for example

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      yeah I think this is going to be the qualm most folks coming from vim are going to have (aside from plugin support which appears to be on its way). Some actions are arguably a bit less ergonomic and others are more ergonomic

  • @hareendranc
    @hareendranc Pƙed rokem

    Could you pls do a video on configuring language server? Specifically Java language support

  • @kevinmadison2088
    @kevinmadison2088 Pƙed 7 měsĂ­ci

    So I'm curious about the "out of the box" syntax highlighting. On my machine I did have to install an lsp, but helix did recognize it without any configuration. I'm assuming you already had rust-analyzer installed? I bring this up because it was a point of confusion for me when trying this for the first time. This video is honestly a great reference.

  • @spongechameleon6940
    @spongechameleon6940 Pƙed rokem +2

    Really like the highlighting by default meta. Other than that looks pretty similar to nvim, especially all the moon related vims coming out lately. I just wish one of these vim revamps a built in debugger and built in git diffs. Having different terminals open for lazygit and whatever debugger always ends up being too messy when I'm working across two or three repos simultaneously (gotta love microservice architectures) and the mental overhead is too much. I'd like a real ide in a terminal. Maybe i oughta check out that whole emacs thing...

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      Yeah I like it as well. Seems like debugging has been a pervasive pain point for the vim community. Emacs is also on my list of things to explore...

    • @florianhennig4778
      @florianhennig4778 Pƙed rokem

      @@codetothemoon Well there is nvim-dap and nvim-dap-ui. I use it on a daily basis and it's not bad at all. You can even reuse your existing launch.json file from VS Code.

    • @nickbanderson
      @nickbanderson Pƙed rokem

      A combo of harpoon.nvim for terminal management and fugitive/lazygit makes one nvim instance per repo in a collection of tmux tabs pretty ergonomic for me. +1 on nvim dap ui.
      I hit space h g to navigate to lazygit terminal (or create if it isnt running yet), then I can c-q for normal mode and either c-6 to go-to previous buffer I was editing or harpoon to marked files with space 1-6.

  • @beepst
    @beepst Pƙed rokem +1

    I'd like to use this as my daily editor, but I can't make it to work properly for React (autocompletion on HTML / JSX / TSX element properties doesn't work at all). Maybe it's me being ignorant, but in the meantime I'll keep using Neovim.

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      I had to switch back to Neovim as well, despite Helix working really well for Rust. I found that for my workflow I was using slightly more keystrokes with Helix - especially because it didn't support the `ci"` motion that replaces the content inside the next set of double quotes. I still hope to return to it, especially after plugins are implemented.

    • @beepst
      @beepst Pƙed rokem

      ​@@codetothemoon Exactly. I think it leans more towards backend development at the moment. The surround feature needs more work as well (for tags, etc). I look forward for future updates, as I really like the idea of this editor.

  • @fancifulconcept
    @fancifulconcept Pƙed rokem +1

    Does Helix include a built in tutorial like Vim?

    • @codetothemoon
      @codetothemoon  Pƙed rokem +2

      yep, its pretty good - when inside Helix, just do :tutor

  • @voncth5791
    @voncth5791 Pƙed 10 měsĂ­ci

    Thx for the video :) earned a subscribe, i am using vscode for the moment but when working on rust projects the formatting sucks and i get comflicts with other extensions. I will try this out thx :)

  • @MeTube3
    @MeTube3 Pƙed rokem

    I’m looking at the site and I can’t even find out if it’s native on Mac Apple silicon, or uses Rosetta. Such a fundamental question. No use googling because it has such a generic name, other software products called helix. Given up.

  • @gareth2021
    @gareth2021 Pƙed rokem +1

    thanks for the video, seems helix is a bit more beginner friendly than vim. I will def check it out :)

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      it is indeed, let us know what you think of it!

  • @mehranfotovat1013
    @mehranfotovat1013 Pƙed rokem +1

    i installed helix but i dont get auto complete out of the box should i be doing any configuration to get this working ?

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      What language? If Rust, do you have rust-analyzer installed?

    • @mehranfotovat1013
      @mehranfotovat1013 Pƙed rokem

      @@codetothemoon rust and python, i didn't install rust-analyzer on computer i only have rust analyzer extension on vscode

    • @rakandhiyaaa92
      @rakandhiyaaa92 Pƙed rokem +1

      @@mehranfotovat1013 you have to install rust-analyzer to your machine first, helix will automatically detect it

    • @codetothemoon
      @codetothemoon  Pƙed rokem +1

      @@mehranfotovat1013 yeah i'd try installing rust-analyzer and see if that helps

    • @mehranfotovat1013
      @mehranfotovat1013 Pƙed rokem

      @@codetothemoon Thanks :) ill try to see if it works

  • @chandrashekharkotekar8453
    @chandrashekharkotekar8453 Pƙed 6 měsĂ­ci

    Can we integrate Github co-pilot in this?

  • @bataragirsang
    @bataragirsang Pƙed 4 měsĂ­ci

    it's really good so far, hope have file tree like nvim-tree with file/folder modification feature..

  • @mardense6835
    @mardense6835 Pƙed rokem

    At 3:25 - I think vim (and nvim) both provide syntax highlighting out of the box. If it's not enabled by default (for me it was), `:syntax on` enables it. Though I think the one vim provides is more "stupid" than Helix's.
    Helix has better completion and other diagnostics out of the box thanks to the LSP, though (even if nvim has narrowed the gap a bit lately).

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      thanks for the info - in vim sometimes i have trouble distinguishing between what's happening via vim itself and what the plugins are doing

  • @AbhishekBajpaiHere
    @AbhishekBajpaiHere Pƙed rokem +1

    oh man i am so happy that you finally arrived at helix, i tried it for sometime but couldn't stick to it. I loved the editor though. I will try it again because now i know there is someone i can ask questions to ;)
    As usual love you content. keep it up.
    let me know if you are on discord or any other means of communication.

    • @codetothemoon
      @codetothemoon  Pƙed rokem

      Glad you liked it! Thanks for the kind words. I've been thinking about maybe making a Discord server, but I keep thinking it might be redundant with all the great Discord servers already out there, like Primeagen has created. Do you think a CTTM Discord server would be valuable?

    • @AbhishekBajpaiHere
      @AbhishekBajpaiHere Pƙed rokem

      @@codetothemoon You shd wait and see if more ppl ask then great. Primeagen doesn't have helix related discussions. There is a matrix chat but i have to download a separate extension for that.

  • @tony-go-code
    @tony-go-code Pƙed rokem

    Thanks for sharing, is it available in for Linux?

  • @thepaulcraft957
    @thepaulcraft957 Pƙed rokem +7

    the part with yanking someone else's config in (neo)vim isn't right in my opinion. When I started out using neovim I just started building mine. Using someone else's just doesn't work

    • @katech6020
      @katech6020 Pƙed rokem +2

      I agree, it is very hard to use what someone else find usable and comfortable

    • @codetothemoon
      @codetothemoon  Pƙed rokem +2

      yeah maybe not everyone does that. Either way, I personally found (and I can't be the only one) setting up the config file to be a huge source of friction when first learning vim, when you're already struggling to learn all the motions.

    • @Flackon
      @Flackon Pƙed rokem +1

      Yeah, there's no way I could follow what I'm doing if I just copied someone's config.
      Still, something to be said that for (neo)vim, several hours dedicated to configuring, researching and installing plugins get you close to the functionality that VSCode (or Helix) have out of the box. Even if after config your setup is superior to those, that investment is a pretty huge barrier that vim advocates don't often talk about