J
J
JZorkiy2019-07-17 15:18:01
vim
JZorkiy, 2019-07-17 15:18:01

vim. How to use imap p to force vim to enter 'angle bracket'p?

That is, in my vimrc, I have:
imap p <p
When I enter p in the text, it should be entered. <p
The problem is that the angle bracket creates strange crashes in vim. Everything is ok without her.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2019-07-17
@hobo-mts

Instead :imap, use :inoremap, so Vim won't think it p's the beginning of a key name.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question