robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
1c4e0e5044
master
1" Vim filetype plugin 2" Language: KerML 3" Author: Daumantas Kavolis <daumantas.kavolis@sensmetry.com> 4" Last Change: 2025-10-06 5 6" Only do this when not done yet for this buffer 7if exists ( "b:did_ftplugin" ) 8finish 9endif 10 11" Don't load another plugin for this buffer 12let b: did_ftplugin = 1 13 14" Set 'comments' to format dashed and starred lists in comments, 15" include /*...*/ in 'comments' for formatting even if it technically 16" is not 17setlocal comments = sO:*\ -,mO:*\ \ ,exO:*/,sO:*\ *,mO:*\ \ ,exO:*/,sr://*,mb:*,ex:*/,sr:/*,mb:*,ex:*/,:///,:// 18setlocal commentstring = //\ %s 19 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 -= t 23setlocal formatoptions += croql 24 25let b: undo_ftplugin = 'setlocal comments< commentstring< formatoptions<'