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/fish.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/fish.vim')
| -rw-r--r-- | uvim/runtime/ftplugin/fish.vim | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/uvim/runtime/ftplugin/fish.vim b/uvim/runtime/ftplugin/fish.vim new file mode 100644 index 0000000000..685ff4d170 --- /dev/null +++ b/uvim/runtime/ftplugin/fish.vim @@ -0,0 +1,41 @@ +" Vim filetype plugin file +" Language: fish +" Maintainer: Nicholas Boyle (github.com/nickeb96) +" Repository: https://github.com/nickeb96/fish.vim +" Last Change: February 1, 2023 +" 2023 Aug 28 by Vim Project (undo_ftplugin) +" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring') +" 2026 Mar 16 by Phạm Bình An (add matchit support) + +if exists("b:did_ftplugin") + finish +endif + +let s:saved_cpo = &cpo +set cpo-=C + +let b:did_ftplugin = 1 + +setlocal iskeyword=@,48-57,_,192-255,-,. +setlocal comments=:# +setlocal commentstring=#\ %s +setlocal formatoptions+=crjq + +let b:undo_ftplugin = "setl cms< com< fo< isk<" + +" Define patterns for the matchit plugin +if exists("loaded_matchit") && !exists("b:match_words") + let b:match_words = + \ '\<\%(else\s\+\)\@<!if\>\|\<\%(switch\|begin\|function\|while\|for\)\>:' .. + \ '\<else\%(\s\+if\)\?\>\|\<case\>:' .. + \ '\<end\>' + + let b:match_ignorecase = 0 + let b:match_skip = "S:keyword" + + let b:undo_ftplugin ..= " | unlet! b:match_words b:match_ignorecase b:match_skip" +endif + +" Restore 'cpo' to its original value +let &cpo = s:saved_cpo +unlet s:saved_cpo |
