diff --git a/ftplugin/ats.vim b/ftplugin/ats.vim index 24383cc..5c92794 100644 --- a/ftplugin/ats.vim +++ b/ftplugin/ats.vim @@ -16,6 +16,12 @@ if !exists('g:ats_autoformat') endif endif +" Set 'formatoptions' to break comment lines but not other lines, +" and insert the comment leader when hitting or using "o". +setlocal fo-=t fo+=croql + +setlocal comments=sr:/*,mb:*,ex:*/,sr:(*,mb:*,ex:*) + " indentation rules set smarttab augroup ats