fix: fix nvim formatoptions and force hardwrap @80

This commit is contained in:
swytch 2020-08-26 13:07:17 +02:00
parent 90e36ef8aa
commit c70c7447fa

View File

@ -104,11 +104,10 @@ set shiftwidth=4
" Indent and wrap rules " Indent and wrap rules
set autoindent set autoindent
set wrap
" Stop auto-commenting new line
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
" Hard wrap at 80
set textwidth=80
autocmd FileType * setlocal formatoptions+=t
" Enable autocompletion " Enable autocompletion
set wildmode=longest,full set wildmode=longest,full