Force formatoptions (fo) to all buffers and file types.

1 Point

Ory Band Ory Band

9 years ago

Many people use formatoptions (short fo) to set word wrapping and other formatting options. Unfortunately many filetype related plugins override this. This snippet defines an autocmd to set them locally for each new buffer.

augroup Format-Options
    autocmd!
    autocmd BufEnter * setlocal formatoptions=crqn2l1j
augroup END