Compare commits

...

2 commits

Author SHA1 Message Date
pull[bot]
2d0664592c
Merge pull request #287 from dmitmel/master
[pull] master from dmitmel:master
2021-06-14 09:56:36 +00:00
Dmytro Meleshko
1460f41211 [nvim] adjust formatoptions (again) 2021-06-14 11:03:52 +03:00

View file

@ -220,11 +220,16 @@ set commentstring=//%s
" Formatting {{{ " Formatting {{{
" -o: don't insert a comment after hitting 'o' or 'O' in the Normal mode " -o: don't insert a comment after hitting 'o' or 'O' in the Normal mode
" +r: however, insert a comment after pressing Enter in the Insert mode
" -t: don't auto-wrap regular code while typing " -t: don't auto-wrap regular code while typing
" -c: don't auto-wrap comments while typing " -c: don't auto-wrap comments while typing
augroup vimrc-editing-formatting augroup vimrc-editing-formatting
autocmd! autocmd!
autocmd FileType * set formatoptions-=o | set formatoptions-=t | set formatoptions-=c autocmd FileType *
\ setlocal formatoptions-=o
\|setlocal formatoptions+=r
\|setlocal formatoptions-=t
\|setlocal formatoptions-=c
augroup END augroup END
" }}} " }}}