Tech Reflect
  • Home
  • About This Site
  • Contact me
  • Search Icon
Click in Terminal window to move cursor

Click in Terminal window to move cursor

2017-03-09

When editing a document in Terminal, whether it be vi or emacs or your-favorite-text-editor, you can use keyboard commands to move the cursor around.

But unless you’re an expert, the commands can be hard-to-remember and tedious. It’s also not very Mac-like. A little gem in Terminal is that you can option-click inside an editor to move your cursor to that position. In the screenshot below, my cursor was near the bottom of the view and I option-clicked right between “option-click” and “here” in the middle of the document.

Note that this works regardless of whether it’s in insert mode or not (using vi terminology). For example, when I’m in command mode in vi, I can option-click anywhere in any line and type “dd” to delete it.

A simple tip and perhaps obvious to some, but in my experience, I see people waste a lot of time arrowing around or struggle with the text navigation commands of vi and emacs when good old fashioned clicking could help you out.


geeky, macOS tips

Post navigation

NEXT
Mailing list etiquette
PREVIOUS
Editing text with Cocoa text shortcuts
Comments are closed.

Get Monthly Updates

Recent Posts

  • Inserting random email sigs in Mail on iOS
  • Keep Instagram open to finish posting…
  • How I predicted the rise of Twitter, barely used it, and amassed 35,000 followers
  • Apple Books 2022, in pictures
  • Killing one bird with two-and-a-half stones in Mac OS X Mail

Categories

  • analog (1)
  • apple career (12)
  • apple inside (19)
  • apple stories (20)
  • bertrand serlet (3)
  • bugs (3)
  • essays (15)
  • geeky (21)
  • interviews (4)
  • iOS tips (4)
  • Mac OS X (7)
  • macOS tips (36)
  • personal (8)
  • predictions (1)
  • products (5)
  • prototypes (6)
  • scott forstall (7)
  • scripting (2)
  • siri (2)
  • steve jobs (16)
  • tim cook (1)
  • workplace (15)

Get Monthly Updates

About cricket


Me with Guiness the owl

25 years in tech. I like to write manifestos. I like to offer interesting tips. I like making fun of things. Everyone copes differently.

My Other Blogs

  • Free Range Parrots
  • Plucky Tree (personal)
© 2025   All Rights Reserved.