syntax-highlighting: vim: set comment string

Vim can automatically comment and format comments. Set the necessary
variable to enable that feature.

See `:help format-comments` for more information.
This commit is contained in:
Liam Beguin 2019-10-13 19:58:41 -04:00 committed by Dylan Baker
parent b268327166
commit 18e0029843
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,9 @@ let b:did_ftplugin = 1
let s:keepcpo= &cpo
set cpo&vim
setlocal commentstring=#\ %s
setlocal comments=:#
setlocal shiftwidth=2
setlocal softtabstop=2