From dd7757bdd7b051c4f0aa2b7011b0a9b44a03a920 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 27 Mar 2016 19:43:48 -0400 Subject: ftplugin/rust.vim: Add commentstring Set `// ` as the comment string for the Rust language (otherwise it defaults to `/* %s */`). --- ftplugin/rust.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftplugin/rust.vim') diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim index 4e466bc..c45091f 100644 --- a/ftplugin/rust.vim +++ b/ftplugin/rust.vim @@ -5,3 +5,7 @@ setlocal expandtab setlocal tabstop=4 setlocal softtabstop=4 setlocal shiftwidth=4 + + +" Comment string +setlocal commentstring=//\ %s -- cgit v1.2.3