![]() This can be done like so: :set formatoptions-=r formatoptions-=c formatoptions-=o O Automatically insert the current comment leader after hitting 'o' or In this case, you want to remove the r flag, but perhaps also the c and o flags: r Automatically insert the current comment leader after hittingĬ Auto-wrap comments using textwidth, inserting the current comment Last set from /usr/share/vim/vim74/ftplugin/vim.vim You can view the current formatoptions with: :set fo?Īnd see where they were set like so: :verbose set fo? " and insert the comment leader when hitting or using "o". Note that the statement about the "defaults" is somewhat misleading, since many filetypes change the formatoptions to best suit the file type for example in /usr/share/vim/vim74/ftplugin/vim.vim: " Set 'formatoptions' to break comment lines but not other lines, ![]() You can separate the option letters with commas for 'formatoptions' is a string that can contain any of the letters below. You can use the 'formatoptions' option to influence how Vim formats text. This is controlled with the formatoptions setting from :help fo-table:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |