blob: 311e00b4a892b782b67b2968e0621b5e790d653b [file] [log] [blame]
Keith Smileyd8f98112023-08-11 14:07:50 -07001" Vim filetype plugin
2" Language: nix
3" Maintainer: Keith Smiley <keithbsmiley@gmail.com>
4" Last Change: 2023 Jul 22
Arnie9754081f02025-04-18 19:34:14 +02005" 2025 Apr 18 by Vim Project (set 'iskeyword' and b:match_words #17154)
Keith Smileyd8f98112023-08-11 14:07:50 -07006
7" Only do this when not done yet for this buffer
8if exists("b:did_ftplugin")
9 finish
10endif
11
12" Don't load another plugin for this buffer
13let b:did_ftplugin = 1
14
Arnie9754081f02025-04-18 19:34:14 +020015let b:undo_ftplugin = "setl commentstring< comments< iskeyword< | unlet! b:match_words"
16
17let b:match_words = "\<if\>:\<then\>:\<else\>,\<let\>:\<in\>"
Keith Smileyd8f98112023-08-11 14:07:50 -070018
19setlocal comments=:#
20setlocal commentstring=#\ %s
Arnie9754081f02025-04-18 19:34:14 +020021setlocal iskeyword+=-