Exit command mode in sublime text 2
Asked Answered
H

6

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?

Hertahertberg answered 6/7, 2012 at 16:35 Comment(0)
R
200

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

Roscoe answered 21/9, 2012 at 16:56 Comment(3)
It's rather i that puts you into insert mode, and Escape that takes you back out.Teratism
@BrunoParmentier then they cannot use i for the for loop?Cuckoopint
If i is not applicable then press Escape once and then press i. Its worked like charm. Thanks for the info, very useful.Granniah
L
80

... 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"
]
Luge answered 26/2, 2014 at 9:32 Comment(2)
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 suddenMulatto
Yah, it has started happening to me all of a sudden as well. Wondering if there was an update that changed this behavior.Rutherford
G
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.

Grand answered 21/5, 2015 at 10:35 Comment(0)
N
7

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.

Nicolas answered 8/11, 2012 at 6:34 Comment(3)
'a' would be for append - much like VIText
I prefer using a because it's faster to do with your left hand only and not have to 'travel' across the keyboard to hit the i.Upgrowth
yup, exactly my reason.Nicolas
L
3

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

Lauderdale answered 6/7, 2012 at 16:40 Comment(1)
I had a shortcut and esc wasn't working but I accidentally pressed 'i' and that took me back to insert mode. Thanks anywaysHertahertberg
S
0

Expanding on Mr Washington's answer:

Note that you can't simply remove the "ignored_packages" section in the user preferences as it will be added back on the next startup of sublime. Overwriting it is required.

Strangury answered 14/3 at 21:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.