News for hackers. Stuff that matters.
Re:Revisiting KDE by nequo on Sunday January 15, 2023 @03:45PM (#34393165)
What makes Evil better than Vim in your experience?
Re:Revisiting KDE by LarryMullins on Sunday January 15, 2023 @03:58PM (#34393295)
Better configuration language. For instance

    (define-key evil-normal-state-map " " "@q")
vs

    noremap <Space> @q
I know it's subjective and some people will say the later is better because it's shorter, but I greatly prefer the first. It's very descriptive, I can tell exactly what it does just by reading it. The vim version... "no remap"? I know it means "Normal Recursive Map", but that's not the way it reads unless you already know what it does. Vim just has a bewildering array of such things, noremap, nnoremap, vnnoremap, znormap, xnoremap, snoremap, onoremap, tnoremap... one of those is fake and you probably can't tell which.

Basically, vim has an old-school unix culture of naming things, while emacs has a lisp culture of naming things. Considering both these editors now come with powerful completion features that make it easy to type long symbol names, I think the lisp approach is the correct one.

I tried to like vimscript. Tried for nearly 15 years. When I finally took the plunge and switched to evil mode it was like a breath of fresh air, and I was left wondering why I hadn't switched years earlier.

Re:Revisiting KDE by mixedCase on Monday January 16, 2023 @12:01AM (#34397002)
You can effortlessly configure Neovim with Fennel nowadays.

This is a good example: https://github.com/nyoom-engineering/nyoom.nvim

The one trade-off is that it's not the first class language, so you still have to mentally translate from Lua to Fennel sometimes.

Re:Revisiting KDE by nurettin on Monday January 16, 2023 @12:54AM (#34397307)
That's it? Just the configuration method? I thought you would go over a bunch of things that cannot be done in vim, but is possible with evil. And all I got was configuration language. And key remapping for that.

Disappointing.

Re:Revisiting KDE by brabel on Monday January 16, 2023 @02:45AM (#34397990)
Discussions about text editors are always useless... people express their opinion as if they were completely objective, but when pressed to explain it they come up with the most ridiculous little things. We should just all recognize it's all subjective preference.
Re:Revisiting KDE by sph on Sunday January 15, 2023 @05:27PM (#34394285)
One feature I really liked when I used evil, which wasn't present in vim, was search/replace with `s/` replicated the case in the replacement string. So `s/one/two/` would replace `One` with `Two`.

Great when you want to refactor a name that's used both as a variable and a CONSTANT in one go.

Re:Revisiting KDE by pengaru on Sunday January 15, 2023 @07:34PM (#34395293)
That's available in vim via the vim-abolish[0] plugin... which has other capabilities, but the one I take advantage of is case-preserving S/one/two/ which does what you want.

It's odd vim doesn't have that builtin, I'm half convinced it does and I just haven't dug enough to find it.

[0] https://github.com/tpope/vim-abolish