84

I just started using sublime text 2 and when I go into command mode I can't get out.

How do I exit out?

Nathaniel Ford
  • 20,545
  • 20
  • 91
  • 102
Luis Liz
  • 1,939
  • 4
  • 20
  • 31

5 Answers5

197

Escape puts you into command mode; i takes you back out.

Ry-
  • 218,210
  • 55
  • 464
  • 476
runningRhetoric
  • 2,541
  • 1
  • 15
  • 15
79

... And, if you want to avoid entering in the command mod when pressing ESC key, add the following ignored packages in your sublime preferences:

"ignored_packages":
[
    "Vintage"
]
Mr Washington
  • 1,295
  • 14
  • 15
  • 5
    thanks, this was driving me nuts...I must've inadvertently removed that package from the ignore list at some point cos it started happening all of a sudden – OACDesigns Jul 10 '14 at 13:15
  • Yah, it has started happening to me all of a sudden as well. Wondering if there was an update that changed this behavior. – Hartley Brody Jul 16 '14 at 19:19
12

It looks like by default in Preferences > Settings - Default this is enabled

"ignored_packages": ["Vintage"]

but then it's overwritten in Settings - User by

"ignored_packages": [
]

so copy the setting from Settings - Default to Settings - User That worked for me.

Pawel
  • 16,093
  • 5
  • 70
  • 73
6

As in Vim, to exit the command mode, press i insert to keep the cursor exactly where it is positioned.

But, since it requires a lot of hand-movements, I personally hate pressing i everytime.

So, while fiddling around with Sublime, I found that pressing a also took you back into normal mode, although the cursor advances by one character (append as correctly pointed out by Chris), I think I'll take that over i.

So, ESC to enter, a to exit the command mode.

kumarharsh
  • 18,961
  • 8
  • 72
  • 100
3

Use the Escape key or Ctrl/Command + ~ (tilde)

Carlin
  • 31
  • 2
  • 1
    I had a shortcut and esc wasn't working but I accidentally pressed 'i' and that took me back to insert mode. Thanks anyways – Luis Liz Jul 06 '12 at 16:47