changeset 687:ae7f2fb75cdf

[vimrc] Disable auto comment
author nanaya <me@nanaya.pro>
date Thu, 13 Oct 2022 16:16:07 +0900
parents 5ebfac7426e5
children 17cacf387f7c
files rc/vimrc
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rc/vimrc	Thu Sep 15 03:00:38 2022 +0900
+++ b/rc/vimrc	Thu Oct 13 16:16:07 2022 +0900
@@ -143,6 +143,12 @@
   autocmd FileType typescriptreact call In2()
   autocmd FileType nginx setlocal commentstring=#\ %s
   autocmd FileType nginx setlocal iskeyword&
+
+  " https://vimdoc.sourceforge.net/htmldoc/change.html#fo-table
+  " disable comment auto format
+  autocmd BufRead,BufNewFile * setlocal formatoptions-=c
+  autocmd BufRead,BufNewFile * setlocal formatoptions-=r
+  autocmd BufRead,BufNewFile * setlocal formatoptions-=o
 endif
 
 if has('autocmd')