Tallboy
Tallboy

Reputation: 13437

how do i map <c-j> without a delay

I dont care what <c-j> does (I think new line or something?)

I've been using kj very quickly to enter normal mode instead of <esc> but im finding this irritating every time i type a k or j it jumbles them up. It never affects the code because as soon as i type past it they fix instantly but im still getting tired of seeing that.

Not to mention i think control+j would be even faster.

The problem is it causes a slight delay before it enters normal mode, because the combo is used elsewehre. how can i explicitly overwrite any other mappings?

Upvotes: 1

Views: 274

Answers (1)

sehe
sehe

Reputation: 393134

List the contending mappings:

:imap <C-j>

Drop the ones you didn't want:

:iunmap <NL>a
:iunmap <NL>b
:iunmap <NL>c

(note that <NL> is indeed an effective synonym for <C-j>)

Upvotes: 2

Related Questions