News for hackers. Stuff that matters.
Re:Neorg: Neovim 0.5’s answer to modern life organization by jandrese on Sunday July 11, 2021 @10:31PM (#27806321)
There are loads of other tricks. For example, say you have discovered that you need to delete an entire block of code. You could position your cursor on the opening or closing brace and type d$. This sounds arcane when you hear it (and to be fair it is to a degree), but once you realize that it's just a combination of navigation and action most of it becomes obvious.
Re:Neorg: Neovim 0.5’s answer to modern life organization by bradrn on Sunday July 11, 2021 @11:05PM (#27806506)
Did you perhaps mean ‘d%’? IIRC ‘d$’ deletes to the end of the line.
Re:Neorg: Neovim 0.5’s answer to modern life organization by jandrese on Monday July 12, 2021 @10:28AM (#27810638)
Of course I fat finger the example. LOL.
Re:Neorg: Neovim 0.5’s answer to modern life organization by crubier on Monday July 12, 2021 @02:49AM (#27807772)
Lol, exactly making my point thank you
Re:Neorg: Neovim 0.5’s answer to modern life organization by bradrn on Monday July 12, 2021 @04:45AM (#27808328)
Quite the converse, in fact I use vim mode whenever I can; I would struggle to think of a better way of editing text. (My current editor is Emacs+evil and I don’t anticipate changing it any time soon.) I strongly suspect GGP’s post was simply a typo, as ‘%’ and ‘$’ are right next to each other on the keyboard. And if I were to make that typo while editing a real document, I would need only the three keystrokes ‘ud%’ to undo it and then do the editing action I originally meant.