diff rc/vimrc @ 687:ae7f2fb75cdf

[vimrc] Disable auto comment
author nanaya <me@nanaya.pro>
date Thu, 13 Oct 2022 16:16:07 +0900
parents 88888f40c628
children 1e0f578f6752
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')