From 5aef418a5f549a95412b1fd3fdb517ead2d2b8b5 Mon Sep 17 00:00:00 2001 From: iyzana <16743652+iyzana@users.noreply.github.com> Date: Sun, 19 May 2024 21:02:41 +0000 Subject: [PATCH] Include space in commentstring --- ftplugin/rust.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim index fb048cac..473e245a 100644 --- a/ftplugin/rust.vim +++ b/ftplugin/rust.vim @@ -36,7 +36,7 @@ if get(g:, 'rust_bang_comment_leader', 0) else setlocal comments=s0:/*!,ex:*/,s1:/*,mb:*,ex:*/,:///,://!,:// endif -setlocal commentstring=//%s +setlocal commentstring=//\ %s setlocal formatoptions-=t formatoptions+=croqnl " j was only added in 7.3.541, so stop complaints about its nonexistence silent! setlocal formatoptions+=j