nix.vim (579B)
1 " Vim filetype plugin 2 " Language: nix 3 " Maintainer: Keith Smiley <keithbsmiley@gmail.com> 4 " Last Change: 2023 Jul 22 5 " 2025 Apr 18 by Vim Project (set 'iskeyword' and b:match_words #17154) 6 7 " Only do this when not done yet for this buffer 8 if exists("b:did_ftplugin") 9 finish 10 endif 11 12 " Don't load another plugin for this buffer 13 let b:did_ftplugin = 1 14 15 let b:undo_ftplugin = "setl commentstring< comments< iskeyword< | unlet! b:match_words" 16 17 let b:match_words = "\<if\>:\<then\>:\<else\>,\<let\>:\<in\>" 18 19 setlocal comments=:# 20 setlocal commentstring=#\ %s 21 setlocal iskeyword+=-