From e2353195eaeb407a53f0b1f47c2fa609d3ce24f0 Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Wed, 6 May 2026 13:07:48 -0500 Subject: [PATCH] Add commentstring support This enables the use of gc in Neovim. --- ftplugin/cocci.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ftplugin/cocci.vim diff --git a/ftplugin/cocci.vim b/ftplugin/cocci.vim new file mode 100644 index 0000000..aad1bd6 --- /dev/null +++ b/ftplugin/cocci.vim @@ -0,0 +1,13 @@ +" Vim ftplugin file +" Language: Cocci (SmPL) +" Author: Alexander Færøy +" License: You may redistribute this under the same terms as Vim itself. + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +setlocal commentstring=//\ %s + +" vim: set et ts=4 :