From b3cb0f6beacb69a4399b2e22ce3464602c6cd1bb Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 13 Oct 2024 19:29:43 +0200 Subject: vim-patch:6e91853: runtime(gleam): add ftplugin for gleam files fixes: vim/vim#15864 closes: vim/vim#15866 https://github.com/vim/vim/commit/6e918538b117c8c0b87a3d30300e8bbd073d652c Co-authored-by: Trilowy <49493635+trilowy@users.noreply.github.com> --- runtime/ftplugin/gleam.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 runtime/ftplugin/gleam.vim (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/gleam.vim b/runtime/ftplugin/gleam.vim new file mode 100644 index 0000000000..9ed607c4b3 --- /dev/null +++ b/runtime/ftplugin/gleam.vim @@ -0,0 +1,16 @@ +" Vim filetype plugin file +" Language: Gleam +" Maintainer: Trilowy (https://github.com/trilowy) +" Last Change: 2024 Oct 13 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setlocal comments=://,:///,://// +setlocal commentstring=//\ %s + +let b:undo_ftplugin = "setlocal comments< commentstring<" + +" vim: sw=2 sts=2 et -- cgit