Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
haml.vim77 linesDownload Raw Back to ftplugin
1" Vim filetype plugin2" Language:	Haml3" Maintainer:	Tim Pope <vimNOSPAM@tpope.org>4" Last Change:	2019 Dec 055"		2024 Jan 14 by Vim Project (browsefilter)6 7" Only do this when not done yet for this buffer8if exists("b:did_ftplugin")9  finish10endif11 12let s:save_cpo = &cpo13set cpo-=C14 15" Define some defaults in case the included ftplugins don't set them.16let s:undo_ftplugin = ""17if has("win32")18  let s:browsefilter = "All Files (*.*)\t*\n"19else20  let s:browsefilter = "All Files (*)\t*\n"21endif22let s:match_words = ""23 24runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim25unlet! b:did_ftplugin26set matchpairs-=<:>27 28" Override our defaults if these were set by an included ftplugin.29if exists("b:undo_ftplugin")30  let s:undo_ftplugin = b:undo_ftplugin31  unlet b:undo_ftplugin32endif33if exists("b:browsefilter")34  let s:browsefilter = b:browsefilter35  unlet b:browsefilter36endif37if exists("b:match_words")38  let s:match_words = b:match_words39  unlet b:match_words40endif41 42runtime! ftplugin/ruby.vim ftplugin/ruby_*.vim ftplugin/ruby/*.vim43let b:did_ftplugin = 144 45let &l:define .= empty(&l:define ? '' : '\|') . '^\s*\%(%\w*\)\=\%(\.[[:alnum:]_-]\+\)*#'46 47" Combine the new set of values with those previously included.48if exists("b:undo_ftplugin")49  let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin50endif51if exists ("b:browsefilter")52  let s:browsefilter = substitute(b:browsefilter,'\cAll Files (.*)\t\*\n','','') . s:browsefilter53endif54if exists("b:match_words")55  let s:match_words = b:match_words . ',' . s:match_words56endif57 58" Change the browse dialog on Win32 and GTK to show mainly Haml-related files59if has("gui_win32") || has("gui_gtk")60  let b:browsefilter="Haml Files (*.haml)\t*.haml\nSass Files (*.sass)\t*.sass\n" . s:browsefilter61endif62 63" Load the combined list of match_words for matchit.vim64if exists("loaded_matchit")65  let b:match_words = s:match_words66endif67 68setlocal comments= commentstring=-#\ %s69 70let b:undo_ftplugin = "setl def< cms< com< " .71      \ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin72 73let &cpo = s:save_cpo74unlet s:save_cpo75 76" vim:set sw=2:77 
codekingpro/portable-devtools · Team Ai