Hacker News new | ask | show | jobs
by atombender 3623 days ago
Borland's IDEs (Turbo Pascal, etc.) also implemented the WordStar keyboard shortcuts and block behaviour, and it was amazingly productive.

You could mark a block (^KB to start, ^KK to end), and you could move around, find a place to insert it, then hit ^KV to move it there. Borland's IDEs also had selecting (using shift+arrows like many UIs today), and didn't affect blocks, which meant you could do some really fast editing by combining them.

The WordStar keystrokes currently survive in JOE [1], which I use as my $EDITOR. There's also a tiny Atom plugin [2] which gives you those block commands.

[1] https://en.wikipedia.org/wiki/Joe%27s_Own_Editor

[2] https://github.com/iarna/atom-joe

2 comments

The phrase I remember was that the WordStar key commands were no one's favorite commands, but everyone's second favorite. That is, everyone in microcomputing in the 1980s knew and could use the ^KB, etc. set, but preferred some other editor's way of doing things.

Looking around now, this may have come from Phillipe Khan and Sidekick. Quoting Jim Mischel at http://www.mischel.com/diary/2005/08/22.htm :

> While I'm on the subject of WordStar, I've heard a story that I haven't been able to verify. When Phillipe Kahn was asked why he chose to use the WordStar command set in the first version of Sidekick, he said that he asked a lot of people for their editor preferences. Almost everybody had a different first preference (back then it could have been Emacs, vi, Word Perfect, WordStar, Brief, Leading Edge Word Processor, or who knows what else). But almost everybody he asked knew WordStar and named it as their second preference. I don't know if it's true, but it smacks of truth. Certainly every microcomputer programmer I knew back in the late 80s was proficient with WordStar.

vim and emacs provides that. with vim, you can yank go to where you want to paste it and insert in in. if you want to see it visually you can use the v command, in emacs, it's called yank-pop.
I don't know vim or Emacs — does the marked region stay in place, still marked, while you travel elsewhere to copy/move it?
Yep.
As an Emacs user: wait, what?
Mark start and end of region you want to move somewhere: "ma <navigat> mb"

Move to where you want to move the text.

"'a,'b mo ."

You can set up to 26 marks, a-z. I usually use a & b for start and end of a move block, and start from the bottom of the alphabet for things I want to refer to later. It's also possible to split the screen. So if I am editing and realise I've got to fix a bunch of instances of something, I'll split the screen (to save my place), then do the edits in the other window, return to the first when done, and close the temporarily created one.