# Vim停止將“<Plug>”視為關鍵字以在插入模式下調用函數

inoremap  InsertComment


inoremap  InsertComment :call INSERT_MY_COMMENT


The mapping worked really well after I configured it. But somehow recently it stopped functioning. And whenever I can to use the Key-bind in the insert mode, instead calling the function that I mapped, vim will just paste the entire InsertComment thing to my buffer.

inoremap :call INSERT_MY_COMMENT

it still works as desired, which means there must be something wrong with the part.

But I really have no clue on why would stop being interpreted by vim as a handle to call other plugins.

inoremap  InsertComment :call INSERT_MY_COMMENT
inoremap  InsertComment


## 最佳答案

inoremap  InsertComment


imap  InsertComment