diff options
author | Liam Beguin <liambeguin@gmail.com> | 2019-10-13 19:58:41 -0400 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-10-14 08:28:23 -0700 |
commit | 18e00298439cdc7cdf54b640a89e62620a2daf08 (patch) | |
tree | 759c168b1224e5ea3c3f0e1d17514d144c8f2028 /data | |
parent | b268327166139816f575add6b2958943efd5a020 (diff) | |
download | meson-18e00298439cdc7cdf54b640a89e62620a2daf08.zip meson-18e00298439cdc7cdf54b640a89e62620a2daf08.tar.gz meson-18e00298439cdc7cdf54b640a89e62620a2daf08.tar.bz2 |
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.
Diffstat (limited to 'data')
-rw-r--r-- | data/syntax-highlighting/vim/ftplugin/meson.vim | 3 |
1 files changed, 3 insertions, 0 deletions
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 |