From 2a173a59f25f92e00466fd49465e1fb49174746e Mon Sep 17 00:00:00 2001 From: netei Date: Wed, 19 Aug 2015 14:08:02 +0200 Subject: [PATCH] Update javascript.snippets : f should expand near words If you write `http.get(f` and hit tab, `f` won't be expanded to the function snippet. This merge request fixes this, by specifying that it should be expanded near **w**ord boundaries. > w Word boundary - With this option, the snippet is expanded if > the tab trigger start matches a word boundary and the tab trigger end > matches a word boundary. In other words the tab trigger must be > preceded and followed by non-word characters. Word characters are > defined by the 'iskeyword' setting. Use this option, for example, to > permit expansion where the tab trigger follows punctuation without > expanding suffixes of larger words. --- snippets/javascript/javascript.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/javascript/javascript.snippets b/snippets/javascript/javascript.snippets index 2549f06..c8807b8 100644 --- a/snippets/javascript/javascript.snippets +++ b/snippets/javascript/javascript.snippets @@ -11,7 +11,7 @@ snippet fun ${0} } # Anonymous Function -snippet f +snippet f "" w function(${1}) { ${0} }