732 karma · joined Oct 2, 2015 (11y ago) · 250 submissions
comment 3y ago · link · parent
It is very much debatable whether Lua is the "reasonable programming interface" causing the activity in Neovim. Vimscript has many flaws, one of them being that it doesn't look like other programming languages, but it does its specialized job pretty well. It is slow, but efforts are made in that area. Lua is well designed but it certainly has its shortcomings too, and many argue (me included) that programming in Lua is not that pleasant. The Lua bindings have been available in Vim for quite some time, but they never were popular, for some reasons.
Anyway, it is not directly related to your point, but I think that example is not that compelling.
comment 3y ago · link · parent
Incidentally, the same advice apply to Bash: just read the man page, and search into it each time it is needed. It is just worth it.
comment 4y ago · link · parent
The main issue is that many people try (by necessity or not) to cobble scripts together without really learning the language and its idioms. It's not that hard to really learn it though, it's basically one man page then the mandatory [wooledge wiki][1].
comment 4y ago · link · parent
Bash (and other shells) are very good at working with other programs and using the filesystem. It's true you have to know many idioms, but once you're there, you can be quite productive for these kinds of tasks.
comment 4y ago · link · parent
- multiple-cursor: select non-contiguous pieces of text, then edit them all at once.
- vim macro/repeat: edit a piece of text, and repeat on similar occurrences.
The vim "way" could be, `/;$` to select the trailing semi-colon, then `cgn` to edit it (enter the curly block once in insert mode, then exit with `<Esc>`), and now you can repeat on the next trailing semi-colon simply by hitting `.` (dot).
So, instead of first looping on the occurrences to get multiple cursors, then do the editing, you first do the editing on an occurrence, and you loop on the editing. There is admittedly less of a "wow" factor, but I don't think it is any less powerful.
(edited for formatting).
comment 4y ago · link · parent
I believe vim is a great editor for the kind of people who like sed, awk, and working from/with the shell, since it's pretty much the same culture.
comment 4y ago · link · parent
As far as I'm concerned, as a grey beard sysadmin, I don't need an IDE, so I value more the advanced editing features of Vim and I've been happy with it for years (more than I'd like to admit).
comment 6y ago · link · parent
comment 7y ago · link · parent
The power of old tools :)
comment 8y ago · link · parent
You can sort your mailbox according to your needs, which gains time and save space compared to, say, hanging folders.
comment 8y ago · link · parent
https://www.amazon.com/Dictators-Handbook-Behavior-Almost-Po...
comment 8y ago · link · parent
comment 8y ago · link · parent