From 18e00298439cdc7cdf54b640a89e62620a2daf08 Mon Sep 17 00:00:00 2001 From: Liam Beguin Date: Sun, 13 Oct 2019 19:58:41 -0400 Subject: 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. --- data/syntax-highlighting/vim/ftplugin/meson.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data') diff --git a/data/syntax-highlighting/vim/ftplugin/meson.vim b/data/syntax-highlighting/vim/ftplugin/meson.vim index e21b61f..f533405 100644 --- a/data/syntax-highlighting/vim/ftplugin/meson.vim +++ b/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 -- cgit v1.1