If you wanted to emulate the Alt + Backspace which deletes the word to the left of the cursor, it is possible that you would also want to emulate the Command + Backspace functionality, which deletes the line to the left of the cursor.
Assuming that you use the native Ctrl + Backspace Windows functionality to delete the previous word, you can remap Alt + Backspace to delete the previous line. This is especially convenient as on most Windows keyboards the Alt key is approximately in the same position as the Command key on Mac computers.
The following AutoHotKey script would achieve the aforementioned functionality:
!Backspace::
Send {Shift down}{Home}{Shift up}{Backspace}
return
7FYI, you can use Ctrl+arrows to skip entire words, and with Shift added to the combo, you can select sentences much faster and with precision. Same should work on Mac. – user1306322 – 2018-03-14T07:52:20.643
8Also, double-clicking and dragging without releasing the left mouse button from the second click will allow you to select entire words, including the one you clicked on. And triple-click selects whole paragraphs of text, dragging optional. – user1306322 – 2018-03-14T08:08:55.790
19Just type
daw
and then.
for the next word. You're usingvim
, right? – Eric Duminil – 2018-03-14T12:21:49.9437@user1306322 MIND == BLOWN. I've been a windows ("power")user for decades and was aware of double/triple clicking for words/paragraphs. Never realized it would work for dragging too. – RobIII – 2018-03-15T13:41:49.223
1@EricDuminil The equivalent functionality in vim would be
Ctrl-W
in insert-mode. :) – JoL – 2018-03-15T18:20:11.470It seems to me that many common Alt+(key) commands in Mac happen to be implemented as Ctrl-(key) in Windows, and Option-(key) commands in Mac happen to be implemented as Alt+(key) commands in Windows. – phyrfox – 2018-03-16T19:59:56.770
@phyrfox alt is the same as option on mac – pfg – 2018-03-16T22:21:52.863
@RobIII I actually found out about that while I was writing that comment. I knew about dragging the double-click and then thought "hmm… but what if I dragged the triple-click?" and it worked. So yea :p – user1306322 – 2018-03-18T22:45:19.447