sbc_compliant: (Default)
[personal profile] sbc_compliant
Did something neat today. I knew it was theoretically possible, but I just hadn't needed it until today, nor did I know the exact mechanics of implementing it.

I had keyed in less .bashrc to see some aliases, and realized I needed to add another one. I remembered that it's supposed to be possible to open vi from the less ouput. So, I said, "what the hey," and keyed in vi -- which dropped me into insert mode immediately.

I escaped from insert mode into command mode and then yanked a similar line to copy as a template. I pasted the line and then modified it to my liking. I was curious as to whether escaping the insert mode would drop me out of this instance of vi, since it was being invoked through another program.

After the :wq, I was dropped back into the less output, with my new addition visible.

Sweet.

Now I know how that works.

Profile

sbc_compliant: (Default)
sbc_compliant

November 2019

S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 10th, 2026 06:35 am
Powered by Dreamwidth Studios