Mercurial > vim
changeset 32734:bbd43982d4eb
Add commentstring for nix file format (#12696)
Commit: https://github.com/vim/vim/commit/d8f981138aa04c15ff87b306e9003df8d4b09d17
Author: Keith Smiley <keithbsmiley@gmail.com>
Date: Fri Aug 11 14:07:50 2023 -0700
Add commentstring for nix file format (https://github.com/vim/vim/issues/12696)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 11 Aug 2023 23:15:04 +0200 |
parents | 29566859ec54 |
children | 3046c7ce2469 |
files | runtime/ftplugin/nix.vim |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/runtime/ftplugin/nix.vim @@ -0,0 +1,17 @@ +" Vim filetype plugin +" Language: nix +" Maintainer: Keith Smiley <keithbsmiley@gmail.com> +" Last Change: 2023 Jul 22 + +" Only do this when not done yet for this buffer +if exists("b:did_ftplugin") + finish +endif + +" Don't load another plugin for this buffer +let b:did_ftplugin = 1 + +let b:undo_ftplugin = "setl commentstring< comments<" + +setlocal comments=:# +setlocal commentstring=#\ %s