keymapping - Vim key mapping with symbols -
I define a key key map to insert the selected line inside an HTML This is not work, I think that Vim is in a specific way by It seems that you are using VIM in "compatible mode" which is just disappointing Drafting people do "Nocompatible mode", your mapping works as expected, so you should make sure that Anyway, your Running the Vim in "nocompatible mode" is the best way to go the best , but you can also use the following notation if you really insist on being "compatible" : where p tag I'm trying to:
& lt; P & gt; is interpreting how can I solve it?
nocompatible is set to (empty
~ / .imim Must be enough).
& lt; P & gt; s is not a problem, because it is inserted normally, this is your
& lt; cr & gt; and your
& lt; esc & gt; Creating a mistake: Since you are running VIM in "compatible mode",
cpoptions in the option
and lt; CR & gt; and friends as a special key.
vnoremap & lt; leader & gt; BP C & lt; P & gt; ^ M & lt; / P & gt; ^] P
^ M is passed to
& lt; C-V & gt; & Lt; CR & gt; and
^] are inserted with
& lt; C-V & gt; & Lt; Esc & gt; .
Comments
Post a Comment