robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:39ee7d1: runtime(yara): add ftplugin for yara filetype (#38361)e1c4e5523f

master
649 B22 linesraw
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")
8  finish
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-=t formatoptions+=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<"