robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
e1c4e5523f
master
1" Vim filetype plugin file 2" Language: YARA 3" Maintainer: The Vim Project <https://github.com/vim/vim> 4" Last Change: 2026 Mar 17 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 'formatoptions' to break comment lines but not other lines, 15" and insert the comment leader when hitting <CR> or using "o". 16setlocal formatoptions -= tformatoptions += croql 17 18setlocal commentstring = //\ %s 19setlocal comments = s1:/*,mb:*,ex:*/,:// 20 21" Undo settings when leaving buffer 22let b: undo_ftplugin = "setlocal commentstring< comments< formatoptions<"