diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-02 18:44:22 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-02 18:44:22 +0300 |
| commit | 934382c8a1ce738589dee9ee0f14e1cec812770e (patch) | |
| tree | f13715762efd06518f8aec3a2bf39ac8a615987f /uvim/runtime/ftplugin/matlab.vim | |
| parent | 0b24459ac12b6cf9fd5a401d647796ca254a8fa8 (diff) | |
| parent | 7088926316d8d4a7572a242d0765e99adfc8b083 (diff) | |
| download | Project-Tick-934382c8a1ce738589dee9ee0f14e1cec812770e.tar.gz Project-Tick-934382c8a1ce738589dee9ee0f14e1cec812770e.zip | |
Add 'uvim/' from commit '7088926316d8d4a7572a242d0765e99adfc8b083'
git-subtree-dir: uvim
git-subtree-mainline: 0b24459ac12b6cf9fd5a401d647796ca254a8fa8
git-subtree-split: 7088926316d8d4a7572a242d0765e99adfc8b083
Diffstat (limited to 'uvim/runtime/ftplugin/matlab.vim')
| -rw-r--r-- | uvim/runtime/ftplugin/matlab.vim | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/uvim/runtime/ftplugin/matlab.vim b/uvim/runtime/ftplugin/matlab.vim new file mode 100644 index 0000000000..d3c74b4ecf --- /dev/null +++ b/uvim/runtime/ftplugin/matlab.vim @@ -0,0 +1,34 @@ +" Vim filetype plugin file +" Language: matlab +" Maintainer: Jake Wasserman <jwasserman at gmail dot com> +" Update By: Gabriel Dupras +" Last Change: 2021 Aug 30 + +" Contributors: +" Charles Campbell + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let s:save_cpo = &cpo +set cpo-=C + +if exists("loaded_matchit") + let s:conditionalEnd = '\%(\%(^\|;\)\s*\)\@<=end\>' + let b:match_words= + \ '\<\%(if\|switch\|for\|while\|try\)\>:\<\%(elseif\|case\|break\|continue\|else\|otherwise\|catch\)\>:' . s:conditionalEnd . ',' . + \ '\<function\>:\<return\>:\<endfunction\>' + unlet s:conditionalEnd +endif + +setlocal suffixesadd=.m +setlocal suffixes+=.asv +setlocal commentstring=%\ %s + +let b:undo_ftplugin = "setlocal suffixesadd< suffixes< commentstring< " + \ . "| unlet! b:match_words" + +let &cpo = s:save_cpo +unlet s:save_cpo |
