Skip to content

Commit

Permalink
syntax-highlighting: vim: set comment string
Browse files Browse the repository at this point in the history
Vim can automatically comment and format comments. Set the necessary
variable to enable that feature.

See `:help format-comments` for more information.
  • Loading branch information
liambeguin authored and dcbaker committed Oct 14, 2019
1 parent b268327 commit 18e0029
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/syntax-highlighting/vim/ftplugin/meson.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 18e0029

Please sign in to comment.