Using Helix - Coming from VSCode (3 weeks in)
Vložit
- čas přidán 29. 02. 2024
- I could never get myself set up on Vim, and always ended up on GUI code editors like VSCode. But I've spent the last 3 weeks in Helix using it as my primary editor.
Here is what I love, like and dislike about it.
My config:
github.com/mkellyxp/nix/blob/...
My language config:
github.com/mkellyxp/nix/blob/...
Thank you so much, your situation was so relatable for me. I was looking for this!
And good joke about light themes, btw.
So glad it was helpful for you! And yes, those light themes will get you!
Thank you for your introduction to Helix. ❤❤❤
Exactly the video i was looking for.
Excellent! I'm glad you found it useful!
Thanks Mike! Good video. I like how the fuzzy file-find shows the full path of the files before the file-name. It helps visualize the structure better. I wish VSCode worked the same way! BTW: VSCode has all that multi-cursor goodness. I love that feature.
i would have been a Helix user but I am too dependent on vim motions. I do like the way it toggles to select text so when I made my most recent vim config, I added it to it. But now I am using Emacs with evil-mode because Vim wasn't enough, and emacs has a lot of the things available but you just need to enable it and Org-mode (my most favorite thing about emacs). If your up for it, you can use the Doom Emacs distribution. I uses vim keybindings (although some bindings does what it suppose to do but not in the way you expect it. Like when pasting text, in vim, lowercase p pastes text on the same line, I got it to paste on the line below, and Capital p, pastes it on the line above. Emacs copies it where ever the cursor is regardless if its a upper or lower. but besides that, all of the bindings I normally use work as intended.
yeah I get that. Lots of Vim users have that muscle memory. I'm "lucky" in that I didn't have that yet. So Helix is the muscle memory now.
I tried helix and loved it. My only issue is when I need to work outside my editor. Many platforms support vim key binds but not helix bindings
Totally know what you mean. The vim bindings never made full sense to me, and I seem to get along more with the Helix ones. However, vim bindings ARE the standard. So def a brain twister if you use them. Luckily for me, I don't really use any tools that do vim bindings. Its Helix, terminal and a bunch of GUI things.
Using helix from vscode means: having helix experience in vscode, like vim extension for vim
I changed it to: Using Helix - Coming from VSCode (3 weeks in)
Does that make more sense?
@@mikekellytech yes, now it's more appropriate and more catchy as well
In the file picker use tab and shift-tab to move up and down the list.
good tip! Thanks
You can set helix keybindings to also open commands or apps as a buffer! for example i have C-g to open lazygit. You can do that with yazi
Ohhh, can you share the command for that? I can't seem to find it in the docs. How to open a command in a buffer
@@mikekellytech
[keys.normal]
C-g = [":new", ":insert-output lazygit", ":buffer-close!", ":redraw"]
(from czcams.com/video/p3qvSz4RJts/video.html&ab_channel=SourceSyrup)
You can use lazyvim to make the configuration simpler
does your setup do auto pair tags?
Yup! If you mean if you open a tag it will autocomplete the close tag, yes. Same with opening an if statement braces, it will add the close, etc
@@mikekellytechhow did you do that can you make the config video i am struggling with writing html and php code
It's all cool but can it beat micro? 😄
Helix is pre configured out of the box but if you face any limitation no one can help you (while other editors have multiple extension for any use case). This is a big flaw in a long run.
Sublime is a fantastic editor to consider using as well. Its technically modeless, but you can add key bindings to create custom modes if you want a modal experience
sublime? 🤮
whats the point of an editor that as it bests, will looks like neovim?
Not half way through the video yet, but if he didn't feel he really got used to VIM and he gets used to Helix, why not? He didn't complain about the looks of VIM
just simpler to get into. There are also less things that could go wrong (!in my experience!) in comparison to vim. I like the keybindings more as well: instead of `dw` you would do `wd`, since it selects the word. Makes it a little easier to see the selection before you do an action.
the obvious downside is: no plugin support, but it's being worked on.
But honestly just use a vim plugin in vscode if you want to get things done xd. The largest ecosystem with great keybindings.
None, you’re right-use the incumbent.