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

1 Point

Ory Band Ory Band

8 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 BufEnter * setlocal formatoptions=crqn2l1j
augroup END