dice.camp is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon server for RPG folks to hang out and talk. Not owned by a billionaire.

Administered by:

Server stats:

1.7K
active users

#vi

1 post1 participant0 posts today

So I’ve been using vi for over three decades now, and vim was often the flavor of vi being used.

I just noticed that when editing a compressed file in vim (e.g. vim foo.gz), the implicit decompression step is entered into the undo log. You can hit u right after file load and get the compressed binary data.

Huh.

Replied in thread

@GossiTheDog Oh that won’t do it. I used to have recurring nightmares of armed gangs hunting me. Now? #vi

Always coming back. Never tiring. Never dying.

Bit like that guy from the #Sisu film actually. I’m guessing that’s where the #Finnish swear word ‘vittu’ comes from. A vi that opened from a teletype. It would just sit there, undead, following you, patiently, until your last breath.

me: why is the python repl not respecting my .inputrc

python: we have a new fancy repl

python: you should really try it it's great

python: it's got alllll these great new features

python: they're really great, so much better than our old garbage repl

python: it doesn't use readline so there's no vi mode

me: ...

python: the old repl isn't going away though so you can keep using that

Question for all you ksh users out there. At the moment I'm using emacs mode as it is similar to what I was used to in bash. But if I was to try and fully master vi mode in my #ksh interactive shell is there a way to display in the PS1 prompt what mode it is in ?? I have tried the man page but don't see anything ? Been playing around in vi mode and sometimes I'm forgetting what mode I'm in, so it would be handy if you could somehow either change the prompt or cursor ? 🙃
#FreeBSD #Vi #Oksh