Hexarei

joined 1 year ago
[–] [email protected] 1 points 7 months ago (2 children)

You can get pretty close to the same experience with https://github.com/mfussenegger/nvim-dap, any others?

[–] [email protected] 5 points 7 months ago

I went helix -> vim -> emacs -> kakoune -> neovim, super interesting to see how people's experiences differ

[–] [email protected] 1 points 7 months ago

Most of the productivity comes from the motions; Being able to jump around the text incredibly fast, combining motions with actions and repeats, it's unparalleled in the sheer speed. I can delete an entire function with the same basic pattern Id use to delete a word.

daf -> Delete the current function my cursor is on daw -> Delete the current word d3af -> Delete the next three functions

Stuff like that, but with everything

[–] [email protected] 3 points 7 months ago (4 children)

Name a downside, I'll tell you how you're probably wrong

[–] [email protected] 0 points 7 months ago

I blame my autism

[–] [email protected] 6 points 7 months ago (6 children)

I can't tell if you're trolling; Page up and page down are different from "I need to jump 10 lines down" with 10j. Or 11 lines with 11j. Or "Delete the line I'm on and the six below it" with d6j.

[–] [email protected] 4 points 7 months ago (1 children)

I have most of the features of an IDE in my neovim config; name a feature and there's almost certainly a plugin for it!

Those are just a few small examples. One of my favorite things that vim enables for me is working with text objects. Things like functions, variables, classes, conditionals, paramters... Etc. Any action works with any text object - Want to jump to the next function in the file? Copy everything inside of a conditional? Cut everything up to (but not including) the nearest capital D on the line? Delete just the word your cursor is in the middle of (and one of the spaces around it)? Delete the current line and the N lines below it?

The motions make editing code incredibly fast, and I still have modern features like variable completion, copilot, intellisense, 'jump to definition', "hover" information, fuzzy search in project... Name a feature. I highly recommend giving it a closer look for stuff like that.

[–] [email protected] 2 points 7 months ago (8 children)

Not "move the current line of code", but instead "jump the cursor a number of lines"

[–] [email protected] 6 points 7 months ago

Yes, absolutely. And I refuse to let my day be anything else! :-)

[–] [email protected] 3 points 7 months ago

Ah right, I forget that that one is from vim-surround. Though I know some ides do support somewhat custom vim-configs!

I didn't know about argumentative, my swapping is powered by Tree-Sitter

[–] [email protected] 8 points 7 months ago

It's less about refactoring and more about navigation of your code while editing. Ever wanted to delete a single word? daw deletes the word your cursor is currently in. How about "copy everything up to (but not including) the nearest "D" on the current line? yfD.

The whole point is that editing code in the middle of writing it, not just refactoring it, is immensely faster.

[–] [email protected] 7 points 7 months ago (2 children)

As a software dev, they're significant parts of what I do

view more: ‹ prev next ›