From: GX <59413576+gx089@users.noreply.github.com> Date: Sun, 1 Mar 2026 17:12:00 +0000 (+0000) Subject: runtime(xkb): Include a simple xkb ftplugin X-Git-Tag: v9.2.0085~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14eddc7d46f2e6830beb00834f33eb272d028e82;p=thirdparty%2Fvim.git runtime(xkb): Include a simple xkb ftplugin Problem: There is a xkb syntax, but no filetype plugin. Solution: Create a filetype plugin and set the comment and commentstring options for the xkb filetype (xkb = X keyboard extension) closes: #19537 Signed-off-by: GX <59413576+gx089@users.noreply.github.com> Signed-off-by: Christian Brabandt --- diff --git a/runtime/ftplugin/xkb.vim b/runtime/ftplugin/xkb.vim new file mode 100644 index 0000000000..73ca32e983 --- /dev/null +++ b/runtime/ftplugin/xkb.vim @@ -0,0 +1,14 @@ +" Vim filetype plugin +" Language: xkb (X keyboard extension) +" Maintainer: The Vim Project +" Last Change: 2026 Mar 01 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setl comments=:// +setl commentstring=//\ %s + +let b:undo_ftplugin = 'setl com< cms<'