0
Аяқталған

Undo cursor movement

Jonathan Marshall 13 year бұрын updated by Jon Skinner 13 year бұрын 0
On my Macs I'm forever accidentally pressing CMD and up/down and ending up at the top or bottom of the file. (Usually because I meant to press CMD and left/right - the arrow keys are tiny on modern macs)

VIM allows you to undo a cursor movement by pressing CTRL+O. So it's a pretty painless mistake in VIM but quite painful to correct in Sublime. Could this feature be added?

Cheers!

Answer

Answer
Аяқталған
You can do this with Soft Undo, accessible from the Edit/Undo Selection menu.

The default OS X key binding is Command+U
Answer
Аяқталған
You can do this with Soft Undo, accessible from the Edit/Undo Selection menu.

The default OS X key binding is Command+U