+set formatoptions+=j " Delete comment leader when joining lines
+set formatoptions+=c " Autowrap comments using textwidth
+set formatoptions+=r " Insert comment leader after hitting <Enter>
+set formatoptions+=n " Recognize numbered lists
+set formatoptions+=q " Allow formatting of comments with "gq".
+set formatoptions+=l " do not wrap lines that have been longer when starting insert mode already
+set formatoptions+=t " Auto-wrap text using textwidth
+set formatoptions-=o " Do not insert comment leader after hitting o or O in normal mode