neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

kerml.vim (857B)


      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
      7 if exists("b:did_ftplugin")
      8  finish
      9 endif
     10 
     11 " Don't load another plugin for this buffer
     12 let 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
     17 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,sO:*\ *,mO:*\ \ ,exO:*/,sr://*,mb:*,ex:*/,sr:/*,mb:*,ex:*/,:///,://
     18 setlocal 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"
     22 setlocal formatoptions-=t
     23 setlocal formatoptions+=croql
     24 
     25 let b:undo_ftplugin = 'setlocal comments< commentstring< formatoptions<'