From beb77e60435d8e6177b32b9aa269ce2611a08f96 Mon Sep 17 00:00:00 2001 From: Iuri Fernandes Date: Sun, 25 Oct 2015 22:33:04 +0100 Subject: [PATCH] Improve Elixir defmo snippet with name based on filename --- snippets/elixir.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/elixir.snippets b/snippets/elixir.snippets index 155d7cd..d89ff03 100644 --- a/snippets/elixir.snippets +++ b/snippets/elixir.snippets @@ -70,7 +70,7 @@ snippet defma ${0} end snippet defmo - defmodule ${1:module_name} do + defmodule ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} do ${0} end snippet defp