5

In Vim, ^ can move the cursor to the first word (non white space) of the line, for example

    The quick brown fox jumps over the lazy dog

here ^ in Vim will move to T of The, but in Emacs, how to move cursor to the first word (non white space) of the line instead of using a series of M-b/f and C-a/e/b/f? Is there any existing command to make it?

Thanks

ylzhang
  • 1,108
  • 1
  • 8
  • 13

1 Answers1

12

In Emacs the same thing is achieved by M-m (back-to-indentation).

Bozhidar Batsov
  • 55,802
  • 13
  • 100
  • 117
  • 3
    There's also a similar command (`beginning-of-line-text`) that's not bound to a key by default. See [this answer](http://stackoverflow.com/a/145359/8355) for a discussion of the difference. You can rebind `M-m` to `beginning-of-line-text` if you prefer its behavior `(global-set-key "\M-m" 'beginning-of-line-text)`. – cjm Mar 27 '12 at 07:26