codekingpro/portable-devtools
115k
1" Vim filetype plugin file2" Language: fish3" Maintainer: Nicholas Boyle (github.com/nickeb96)4" Repository: https://github.com/nickeb96/fish.vim5" Last Change: February 1, 20236" 2023 Aug 28 by Vim Project (undo_ftplugin)7" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')8" 2026 Mar 16 by Phạm Bình An (add matchit support)9 10if exists("b:did_ftplugin")11 finish12endif13 14let s:saved_cpo = &cpo15set cpo-=C16 17let b:did_ftplugin = 118 19setlocal iskeyword=@,48-57,_,192-255,-,.20setlocal comments=:#21setlocal commentstring=#\ %s22setlocal formatoptions+=crjq23 24let b:undo_ftplugin = "setl cms< com< fo< isk<"25 26" Define patterns for the matchit plugin27if exists("loaded_matchit") && !exists("b:match_words")28 let b:match_words =29 \ '\<\%(else\s\+\)\@<!if\>\|\<\%(switch\|begin\|function\|while\|for\)\>:' ..30 \ '\<else\%(\s\+if\)\?\>\|\<case\>:' ..31 \ '\<end\>'32 33 let b:match_ignorecase = 034 let b:match_skip = "S:keyword"35 36 let b:undo_ftplugin ..= " | unlet! b:match_words b:match_ignorecase b:match_skip"37endif38 39" Restore 'cpo' to its original value40let &cpo = s:saved_cpo41unlet s:saved_cpo42 