aboutsummaryrefslogtreecommitdiffstats
path: root/projects/aodocs.vim
diff options
context:
space:
mode:
authorTeddy Wing2019-09-02 21:31:06 +0200
committerTeddy Wing2019-09-02 21:42:25 +0200
commitaa9fadda4b29a33ccc150d687a9b9eed21704e31 (patch)
tree8f0f7a4f29f57e17266f56123c7fe264a87ba7ce /projects/aodocs.vim
parentedfc3b2488c8fcdb0bd435c9dd046427bfecf24b (diff)
downloaddotvim-aa9fadda4b29a33ccc150d687a9b9eed21704e31.tar.bz2
projects/aodocs.vim: Add comment leader 'formatoptions'
Automatically insert the comment leader to facilitate JSDoc comments.
Diffstat (limited to 'projects/aodocs.vim')
-rw-r--r--projects/aodocs.vim1
1 files changed, 1 insertions, 0 deletions
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