5 ms·
Interesting on (1), I’ve always used vi mode (like I don’t even know those commands, maybe they work in vi mode too?) and from memory Xonsh had as good a vi mod
by maegul 3y ago
Interesting on (1), I’ve always used vi mode (like I don’t even know those commands, maybe they work in vi mode too?) and from memory Xonsh had as good a vi mode as bash along with some baked in improvements over vanilla bash.
I’m more or less waiting to move to Xonsh full time to see how I go once I’ve got some time to invest moving, largely because it seems it will be a win on all 4 points for me.
Otherwise, the bigger point 5 you allude to is probably the real issue we’re all avoiding.
- xmonkee 3y agoYeah, vi mode is a must for me at this point. I have the readline shortcuts on a post-it on my monitor for the odd time i find myself in a sqlite repl or something.
- kagevf 3y agoThat feature comes from emacs; hit ctrl-y to get ("yank") the last thing you copied, hit alt-y to get the previous thing you copied, and keep hitting alt-y in succession to cycle through the clipboard, which is called the "kill ring" in emacs. I don't know if vim itself supports that feature, let alone vi mode on the command line. "Real" vim supports adding text to registers - does vi mode support it?
- pkulak 3y agoThis is the first I’ve heard of a “kill ring” thing, and it sounds wonderful. Pasting in Vim is generally a PITA because I always cut some word, then delete something to make room for it, which is itself another cut, and then I have to remember what register the thing I want is in now, and how to get at it. Double quote and then 9? I can’t even remember and I’ve been using Vim every day for a decade now.
- NegativeLatency 3y agoI set my vim clipboard to use the system one, and then use a system level clipboard manager it’s great https://github.com/TermiT/Flycut https://github.com/TermiT/Flycut
- kagevf 3y ago> Double quote and then 9? Interesting ... I checked the help using :h " and got to the bottom of it. So "0 is the most recent thing you copied - I use that all the time, it's very useful. Including ctrl-r 0 in insert mode. The other numbers 1 - 9 are the last thing that were cut either from a delete or a change, where "1 is the most recent, "2 the next recent, and so on. The trick, though, is that it has to be //more than 1 line// to automatically end up in a numbered register - unless you explicitly use a numeric register when cutting.