Fork me on GitHub
#spacemacs
<
2021-01-19
>
grazfather17:01:43

I find that i get stuck in insert mode a lot

grazfather17:01:48

escape acts as a prefix

grazfather17:01:02

how do I leave insert mode if both esc and ctrl-[ don't work?

grazfather17:01:28

oh, I think it's from hitting Ctrl-z

practicalli-johnny17:01:29

@grazfather ah, hitting C-z takes you to Emacs editing state, cursor turns blue. C-z will take you back again

grazfather18:01:58

yucky. I wouldn't know how to use it, but I apparently hit it accidentally. How can I unmap it?

practicalli-johnny18:01:22

@grazfather to unmap the key should be something like this in the .spacemacs file, in the dotspacemacs/user-config section

(define-key global-map (kbd "C-z") nil)

practicalli-johnny18:01:32

I think SPC f e R should load in the change, otherwise SPC q r to restart Emacs.

grazfather18:01:42

Hm, that doesn't seem to work.

practicalli-johnny18:01:29

Sorry, copy paste error, I forgot to change the k to a z... updated in the post above

grazfather18:01:05

no that wasn't it, i figured that part

grazfather18:01:13

I had to use global-map not global-state-map

practicalli-johnny18:01:30

Its probably defined in a different keyboard map

grazfather18:01:32

wait that doesnt' work either

grazfather18:01:39

yeah i will unmap it manually in all of them

practicalli-johnny18:01:47

SPC h d K will describe a key map