You can create expanding macros like this: '- - > space': function() { expand('--> ', '→ '); } More info Careful! This is subject to malicious code. Don't copy/paste untrusted content.