vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

yara.vim (649B)


      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
      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 'formatoptions' to break comment lines but not other lines,
     15 " and insert the comment leader when hitting <CR> or using "o".
     16 setlocal formatoptions-=t formatoptions+=croql
     17 
     18 setlocal commentstring=//\ %s
     19 setlocal comments=s1:/*,mb:*,ex:*/,://
     20 
     21 " Undo settings when leaving buffer
     22 let b:undo_ftplugin = "setlocal commentstring< comments< formatoptions<"