News for hackers. Stuff that matters.
Re:How to Exit Vim by namelosw on Wednesday January 08, 2020 @07:24AM (#21990745)
Emacs is so dynamic and easily configurable, that people can actually rebind a lot of things when their colleague go to the bathroom as a prank.

Just open a scratch file, enter some s-expressions, evaluate them, then kill the buffer.

Re:How to Exit Vim by bregma on Wednesday January 08, 2020 @08:53AM (#21991383)
The last time I went to the bathroom as a prank HR had to have another talk with me.
Re:How to Exit Vim by kanon11 on Wednesday January 08, 2020 @09:11AM (#21991546)
Never go to the bathroom as a prank.
Re:How to Exit Vim by nine_k on Wednesday January 08, 2020 @09:54PM (#21998122)
Would serve the victim right.

Never leave your unattended keyboard and screen unlocked.

Re:How to Exit Vim by eitland on Thursday January 09, 2020 @12:40AM (#21998821)
At some place I worked there was a policy that a small prank was allowed if the workstation was not locked when someone left. I'd almost recommend that policy for some places.

Acceptable pranks would be things like:

- innocent videos (annoying videos for toddlers etc)

- change Spotify playlist from rock to childrens songs or rickroll or something

- open MS Paint and draw something (those pranks weren't necessarily small, we got three huge monitors side by side on those workstations)

- etc

Unacceptable pranks:

- anything that wasn't possible to revert in a hurry

- anything a customer couldn't see (we were on display :-/ )

At another place I know someone sent a mail to the team from someone elses account that they would bring cake the next day.

I once burned myself by doing what I thought was the obvious thing: leaving a message in a text editor and locking the machine. Turns out for some reason he couldn't unlock it after it had been locked that way and he needed to leave the campus to have IT at the main site unlock it. (When he locked it he always did it by closing the lid instead of through the system menu.)

Re:How to Exit Vim by jhoechtl on Wednesday January 08, 2020 @11:28AM (#21992843)
That's why my scratch buffer is by default NOT in elisp mode
Re:How to Exit Vim by greggyb on Wednesday January 08, 2020 @12:22PM (#21993536)
You can evaluate an elisp expression anywhere in any mode.
Re:How to Exit Vim by dan-robertson on Wednesday January 08, 2020 @04:59PM (#21996241)
As an aside you can also make a (non-elisp) scratch buffer on the fly: when you switch buffer just enter a name that isn’t taken (I usually use b, bb, bbb, ...)