commit 453ea47b4fed79ae51d82262be3b8d96d0bac32c
parent 252414a60d6be0cb730b958957ee9eb26db27c6d
Author: Alex Balgavy <alex@balgavy.eu>
Date: Fri, 17 Sep 2021 10:01:56 +0200
vim: use '//' for commentstring in C
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/vim/after/ftplugin/c.vim b/vim/after/ftplugin/c.vim
@@ -9,5 +9,6 @@ let &l:include='^\s*#\s*include\s*["<]\zs.*\ze[>"]'
setlocal includeexpr=
let &l:define='\v^\s*(#\s*define)|((const )?(int|char|void|s?size_t) \*? ?)|(struct \ze\k+ \{)|(struct \k+ \ze\k+;)'
let &l:iskeyword='a-z,A-Z,48-57,_,.'
+let &l:commentstring='// %s'
set foldmethod=syntax