Mercurial > ec-dotfiles
comparison 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 |
comparison
equal
deleted
inserted
replaced
686:5ebfac7426e5 | 687:ae7f2fb75cdf |
---|---|
141 autocmd FileType javascript call In2() | 141 autocmd FileType javascript call In2() |
142 autocmd FileType typescript call In2() | 142 autocmd FileType typescript call In2() |
143 autocmd FileType typescriptreact call In2() | 143 autocmd FileType typescriptreact call In2() |
144 autocmd FileType nginx setlocal commentstring=#\ %s | 144 autocmd FileType nginx setlocal commentstring=#\ %s |
145 autocmd FileType nginx setlocal iskeyword& | 145 autocmd FileType nginx setlocal iskeyword& |
146 | |
147 " https://vimdoc.sourceforge.net/htmldoc/change.html#fo-table | |
148 " disable comment auto format | |
149 autocmd BufRead,BufNewFile * setlocal formatoptions-=c | |
150 autocmd BufRead,BufNewFile * setlocal formatoptions-=r | |
151 autocmd BufRead,BufNewFile * setlocal formatoptions-=o | |
146 endif | 152 endif |
147 | 153 |
148 if has('autocmd') | 154 if has('autocmd') |
149 "Restore cursor position | 155 "Restore cursor position |
150 set viminfo='50,\"1000,<1000,:100,%,h,n~/.viminfo | 156 set viminfo='50,\"1000,<1000,:100,%,h,n~/.viminfo |