aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorTeddy Wing2016-03-27 19:43:48 -0400
committerTeddy Wing2016-03-27 19:44:34 -0400
commitdd7757bdd7b051c4f0aa2b7011b0a9b44a03a920 (patch)
tree209aaa8c6681a3501dff2dfcfb3b9dd27a52fe61 /ftplugin
parentcebac9b3cb9cb850cb1ea9412a6260762c5e2361 (diff)
downloaddotvim-dd7757bdd7b051c4f0aa2b7011b0a9b44a03a920.tar.bz2
ftplugin/rust.vim: Add commentstring
Set `// ` as the comment string for the Rust language (otherwise it defaults to `/* %s */`).
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/rust.vim4
1 files changed, 4 insertions, 0 deletions
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