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.
pull/6041/head
Liam Beguin 5 years ago committed by Dylan Baker
parent b268327166
commit 18e0029843
  1. 3
      data/syntax-highlighting/vim/ftplugin/meson.vim

@ -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

Loading…
Cancel
Save