codekingpro/portable-devtools
114k
1" Vim filetype plugin file2" Language: QML3" Maintainer: Chase Knowlden <haroldknowlden@gmail.com>4" Last Change: 2023 Aug 165" 2023 Aug 23 by Vim Project (browsefilter)6" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')7 8if exists( 'b:did_ftplugin' )9 finish10endif11let b:did_ftplugin = 112 13let s:cpoptions_save = &cpoptions14set cpoptions&vim15 16" command for undo17let b:undo_ftplugin = "setlocal formatoptions< comments< commentstring<"18 19if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")20 let b:browsefilter =21 \ "QML Files (*.qml, *.qbs)\t*.qml;*.qbs\n"22 if has("win32")23 let b:browsefilter .= "All Files (*.*)\t*\n"24 else25 let b:browsefilter .= "All Files (*)\t*\n"26 endif27 let b:undo_ftplugin .= " | unlet! b:browsefilter"28endif29 30" Set 'comments' to format dashed lists in comments.31setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://32setlocal commentstring=//\ %s33 34setlocal formatoptions-=t35setlocal formatoptions+=croql36 37let &cpoptions = s:cpoptions_save38unlet s:cpoptions_save39 