Skip to content

Commit b013c23

Browse files
authored
Merge pull request elixir-editors#391 from hauleth/set-define
Set define value
2 parents c6a7fe7 + 86f9312 commit b013c23

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ftplugin/elixir.vim

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
if (exists("b:did_ftplugin"))
1+
if exists('b:did_ftplugin')
22
finish
33
endif
44
let b:did_ftplugin = 1
55

66
" Matchit support
7-
if exists("loaded_matchit") && !exists("b:match_words")
7+
if exists('loaded_matchit') && !exists('b:match_words')
88
let b:match_ignorecase = 0
99

1010
let b:match_words = '\:\@<!\<\%(do\|fn\)\:\@!\>' .
@@ -30,7 +30,9 @@ let &l:path =
3030
setlocal includeexpr=elixir#util#get_filename(v:fname)
3131
setlocal suffixesadd=.ex,.exs,.eex,.erl,.yrl,.hrl
3232

33+
let &l:define = 'def\(macro|guard|delegate\)p'
34+
3335
silent! setlocal formatoptions-=t formatoptions+=croqlj
3436

35-
let b:undo_ftplugin = 'setlocal sw< sts< et< isk< com< cms< path< inex< sua< '.
37+
let b:undo_ftplugin = 'setlocal sw< sts< et< isk< com< cms< path< inex< sua< def<'.
3638
\ '| unlet! b:match_ignorecase b:match_words'

0 commit comments

Comments
 (0)