From 8295232860efdb166e95a44cca0565d1d11c3e00 Mon Sep 17 00:00:00 2001 From: Elias Van Ootegem Date: Thu, 27 Apr 2017 10:57:33 +0100 Subject: [PATCH] add {{- imap for helm template helpers --- README.md | 1 + ftplugin/mustache.vim | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index bcba9b9..d446a9f 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ your cursor ends up after typing an abbreviation: - `{{!` => `{{!_}}` - `{{>` => `{{>_}}` - `{{<` => `{{<_}}` + - `{{-` => `{{- _ -}}` - `{{#` produces ``` diff --git a/ftplugin/mustache.vim b/ftplugin/mustache.vim index 61b5896..d6211b9 100644 --- a/ftplugin/mustache.vim +++ b/ftplugin/mustache.vim @@ -30,6 +30,7 @@ if exists("g:mustache_abbreviations") inoremap {{# {{#}}{{/}} inoremap {{if {{#if }}{{/if}} inoremap {{ife {{#if }}{{else}}{{/if}} + inoremap {{- {{- -}} endif