How should remapping <Esc> with ;; look in .obsidian.vimrc?

What I’m trying to do

As the subject line might hint at, I’ve become really accustomed to hitting semi-colon twice to escape insert mode on the command line because I edited my readline configuration as such. Surprisingly handy if you make a typo while using bash with your terminal and don’t necessarily feel like spamming tab completion, haha.

This is using the Vimrc Support community plugin by esm, in case you glossed over it.

Things I have tried

(help doc and forum search terms included vim, .vimrc, .obsidian.vimrc)

So:

imap jj <Esc>

and similar letter-key variants work,

imap <C-[> <Esc>

and similar Ctrl-key combinations work when surrounded by <>, but

imap ;; <Esc>

does not. Nor does

imap <;;> <Esc>

Any ideas? There’s evidently something I’m overlooking, whether that’s a particular escape character/sequence for dealing with semi-colons unique to .vimrc files or not. I figure there are few differences, if any, between a conventional .vimrc for use with Vim and its Obsidian plugin counterpart. Then again, might be underestimating.

Thanks for any help, in advance.

Ha! Disregard.

I didn’t even have the plugin turned on under

Settings > Options > Community plugins > Installed plugins

D’oh

Not my finest hour, hahaha.

imap ;; <Esc>

works fine.

1 Like