Skip to main content
added 207 characters in body
Source Link
user9024
user9024

I found out that I should have beencan provide a makeshift solution using an autocommand.

The following line in your .vimrc file should apply the new formatoptions everywhere:

autocmd FileType * set formatoptions-=o

However, this doesn't really get to solving the problem; I still don't understand why a simple set wasn't enough, and as has been pointed out in the comments this solution is not ideal.

I found out that I should have been using an autocommand.

The following line in your .vimrc file should apply the new formatoptions everywhere:

autocmd FileType * set formatoptions-=o

I found out that I can provide a makeshift solution using an autocommand.

The following line in your .vimrc file should apply the new formatoptions everywhere:

autocmd FileType * set formatoptions-=o

However, this doesn't really get to solving the problem; I still don't understand why a simple set wasn't enough, and as has been pointed out in the comments this solution is not ideal.

Source Link
user9024
user9024

I found out that I should have been using an autocommand.

The following line in your .vimrc file should apply the new formatoptions everywhere:

autocmd FileType * set formatoptions-=o