From e404a658b1647fad396a954776eda0bdabf8353c Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 20 Dec 2016 20:57:20 +0100 Subject: Update --- ftplugin/eelixir.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'ftplugin/eelixir.vim') diff --git a/ftplugin/eelixir.vim b/ftplugin/eelixir.vim index b0f3284f..eb6f6559 100644 --- a/ftplugin/eelixir.vim +++ b/ftplugin/eelixir.vim @@ -80,6 +80,23 @@ if exists("loaded_matchit") let b:match_words = s:match_words endif +if !exists('b:surround_45') + " When using surround `-` (ASCII 45) would provide `<% selection %>` + let b:surround_45 = "<% \r %>" +endif +if !exists('b:surround_61') + " When using surround `=` (ASCII 61) would provide `<%= selection %>` + let b:surround_61 = "<%= \r %>" +endif +if !exists('b:surround_35') + " When using surround `#` (ASCII 35) would provide `<%# selection %>` + let b:surround_35 = "<%# \r %>" +endif +if !exists('b:surround_5') + " When using surround `` (ASCII 5 `ENQ`) would provide `<% selection %>\n<% end %>` + let b:surround_5 = "<% \r %>\n<% end %>" +endif + setlocal comments=:<%# setlocal commentstring=<%#\ %s\ %> -- cgit v1.2.3