On 11/18/23 01:09, Tim via users wrote:
On Fri, 2023-11-17 at 19:49 -0600, Ranjan Maitra via users wrote:
I am more or less finding my way around nvim, but I have not yet figured out two things yet.
I loved the autoformatting feature of C, etc in emacs. Basically as I typed, things would get formatted. And I have not really been able to figure out if that is possible here (automagically, without pressing any key combination).
The other thing I will look at more carefully this weekend is to figure out a way to reliably highlight a area with my mouse left button [...]
I use gvim (graphical vim), so this may or may not be applicable:
It can recognise various coding formats and highlight the sections in colours, so there's potential for further automation.
I have no particular experience with neovim, but if you've abandoned hope of getting back to Emacs, I'm fairly sure that vim (and gvim) can do a decent job of autoformatting with some configuration -- or at least, as Tim notes, basic auto-indentation out of the box. With C, your mileage may vary depending on your coding style.
You can also use the mouse with vim in most terminals. Try
:set mouse=a
For more info, do :help mouse
Lastly, I'd be remiss not to mention the `joe` editor, which has an emacs-compatibility mode that can be started with `jmacs`.
dnf info joe
Cheers, Ben
PS. Re-sent due to an error - apologies for any duplication