codekingpro/portable-devtools
114k
1" Vim filetype plugin2" Language: KerML3" Author: Daumantas Kavolis <daumantas.kavolis@sensmetry.com>4" Last Change: 2025-10-065 6" Only do this when not done yet for this buffer7if exists("b:did_ftplugin")8 finish9endif10 11" Don't load another plugin for this buffer12let b:did_ftplugin = 113 14" Set 'comments' to format dashed and starred lists in comments,15" include /*...*/ in 'comments' for formatting even if it technically16" is not17setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,sO:*\ *,mO:*\ \ ,exO:*/,sr://*,mb:*,ex:*/,sr:/*,mb:*,ex:*/,:///,://18setlocal commentstring=//\ %s19 20" Set 'formatoptions' to break comment lines but not other lines,21" and insert the comment leader when hitting <CR> or using "o"22setlocal formatoptions-=t23setlocal formatoptions+=croql24 25let b:undo_ftplugin = 'setlocal comments< commentstring< formatoptions<'26 