From aa9fadda4b29a33ccc150d687a9b9eed21704e31 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 2 Sep 2019 21:31:06 +0200 Subject: projects/aodocs.vim: Add comment leader 'formatoptions' Automatically insert the comment leader to facilitate JSDoc comments. --- projects/aodocs.vim | 1 + 1 file changed, 1 insertion(+) (limited to 'projects') diff --git a/projects/aodocs.vim b/projects/aodocs.vim index 9cba95b..11e6721 100644 --- a/projects/aodocs.vim +++ b/projects/aodocs.vim @@ -9,6 +9,7 @@ augroup AODocs autocmd BufRead,BufEnter $VIM_PROJECT_PATH_AODOCS/*.js \ setlocal expandtab tabstop=2 softtabstop=2 shiftwidth=2 + \ formatoptions+=cro autocmd BufRead,BufEnter $VIM_PROJECT_PATH_AODOCS/*.json \ setlocal expandtab tabstop=4 softtabstop=4 shiftwidth=4 -- cgit v1.2.3