mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	options: Include "j" in default 'formatoptions' #2669
This commit is contained in:
		
				
					committed by
					
						
						Justin M. Keyes
					
				
			
			
				
	
			
			
			
						parent
						
							1add7a422f
						
					
				
				
					commit
					eca51bbfa0
				
			@@ -1450,9 +1450,8 @@ By default, "b:#" is included.  This means that a line that starts with
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
							*fo-table*
 | 
												*fo-table*
 | 
				
			||||||
You can use the 'formatoptions' option  to influence how Vim formats text.
 | 
					You can use the 'formatoptions' option  to influence how Vim formats text.
 | 
				
			||||||
'formatoptions' is a string that can contain any of the letters below.  The
 | 
					'formatoptions' is a string that can contain any of the letters below.  You
 | 
				
			||||||
default setting is "tcq".  You can separate the option letters with commas for
 | 
					can separate the option letters with commas for readability.
 | 
				
			||||||
readability.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
letter	 meaning when present in 'formatoptions'    ~
 | 
					letter	 meaning when present in 'formatoptions'    ~
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2910,7 +2910,7 @@ A jump table for the options with a short description can be found at |Q_op|.
 | 
				
			|||||||
	evaluating 'foldtext' |textlock|.
 | 
						evaluating 'foldtext' |textlock|.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					*'formatoptions'* *'fo'*
 | 
										*'formatoptions'* *'fo'*
 | 
				
			||||||
'formatoptions' 'fo'	string (Vim default: "tcq", Vi default: "vt")
 | 
					'formatoptions' 'fo'	string (default: "tcqj", Vi default: "vt")
 | 
				
			||||||
			local to buffer
 | 
								local to buffer
 | 
				
			||||||
	This is a sequence of letters which describes how automatic
 | 
						This is a sequence of letters which describes how automatic
 | 
				
			||||||
	formatting is to be done.  See |fo-table|.  When the 'paste' option is
 | 
						formatting is to be done.  See |fo-table|.  When the 'paste' option is
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,6 +30,7 @@ these differences.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
- 'backspace' defaults to "indent,eol,start"
 | 
					- 'backspace' defaults to "indent,eol,start"
 | 
				
			||||||
- 'encoding' defaults to "utf-8"
 | 
					- 'encoding' defaults to "utf-8"
 | 
				
			||||||
 | 
					- 'formatoptions' defaults to "tcqj"
 | 
				
			||||||
- 'nocompatible' is always set
 | 
					- 'nocompatible' is always set
 | 
				
			||||||
- 'tags' defaults to "./tags;,tags"
 | 
					- 'tags' defaults to "./tags;,tags"
 | 
				
			||||||
- 'ttyfast' is always set
 | 
					- 'ttyfast' is always set
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -79,7 +79,7 @@
 | 
				
			|||||||
#define FO_REMOVE_COMS  'j'     /* remove comment leaders when joining lines */
 | 
					#define FO_REMOVE_COMS  'j'     /* remove comment leaders when joining lines */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define DFLT_FO_VI      "vt"
 | 
					#define DFLT_FO_VI      "vt"
 | 
				
			||||||
#define DFLT_FO_VIM     "tcq"
 | 
					#define DFLT_FO_VIM     "tcqj"
 | 
				
			||||||
#define FO_ALL          "tcroq2vlb1mMBn,awj"    /* for do_set() */
 | 
					#define FO_ALL          "tcroq2vlb1mMBn,awj"    /* for do_set() */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* characters for the p_cpo option: */
 | 
					/* characters for the p_cpo option: */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user