Skip to content

Commit b9243cf

Browse files
committed
Merge pull request elixir-editors#49 from LnL7/add-matchit
Add support for vim-matchit
2 parents c5126b3 + 452c183 commit b9243cf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ftplugin/elixir.vim

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,18 @@ if (exists("b:did_ftplugin"))
88
endif
99
let b:did_ftplugin = 1
1010

11+
12+
" Matchit support
13+
if exists("loaded_matchit") && !exists("b:match_words")
14+
let b:match_ignorecase = 0
15+
16+
let b:match_words = '\<\%(do\|fn\)\:\@!\>' .
17+
\ ':' .
18+
\ '\<\%(else\|elsif\|catch\|after\|rescue\)\:\@!\>' .
19+
\ ':' .
20+
\ '\:\@<!\<end\>' .
21+
\ ',{:},\[:\],(:)'
22+
endif
23+
1124
setlocal comments=:#
1225
setlocal commentstring=#\ %s

0 commit comments

Comments
 (0)