开发者

Remap RagTag Shortcuts Vim

I just switched to vim as my default editor and I am trying to remap the ragtag shortcuts for <%= %>, <% %> and auto-close tag to custom shortcuts:

E.g. the ragtag shortcut for <%= %> is <C-X>=. 开发者_如何学JAVAI tried to remap with:

inoremap <leader>, <C-X>=

But this just prints the = sign to the current buffer. And there does not seem to be ragtag function I could call. Any ideas?


inoremap disallows nested mappings, and probably C-X = is a mapping. For one time, use imap instead, otherwise type imap without argument, to know what <c-x>= maps to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜