mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	options: Include "j" in default 'formatoptions' #2669
This commit is contained in:
		 Felipe Morales
					Felipe Morales
				
			
				
					committed by
					
						 Justin M. Keyes
						Justin M. Keyes
					
				
			
			
				
	
			
			
			 Justin M. Keyes
						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* | ||||
| 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 | ||||
| default setting is "tcq".  You can separate the option letters with commas for | ||||
| readability. | ||||
| 'formatoptions' is a string that can contain any of the letters below.  You | ||||
| can separate the option letters with commas for readability. | ||||
|  | ||||
| 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|. | ||||
|  | ||||
| 					*'formatoptions'* *'fo'* | ||||
| 'formatoptions' 'fo'	string (Vim default: "tcq", Vi default: "vt") | ||||
| 'formatoptions' 'fo'	string (default: "tcqj", Vi default: "vt") | ||||
| 			local to buffer | ||||
| 	This is a sequence of letters which describes how automatic | ||||
| 	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" | ||||
| - 'encoding' defaults to "utf-8" | ||||
| - 'formatoptions' defaults to "tcqj" | ||||
| - 'nocompatible' is always set | ||||
| - 'tags' defaults to "./tags;,tags" | ||||
| - 'ttyfast' is always set | ||||
|   | ||||
| @@ -79,7 +79,7 @@ | ||||
| #define FO_REMOVE_COMS  'j'     /* remove comment leaders when joining lines */ | ||||
|  | ||||
| #define DFLT_FO_VI      "vt" | ||||
| #define DFLT_FO_VIM     "tcq" | ||||
| #define DFLT_FO_VIM     "tcqj" | ||||
| #define FO_ALL          "tcroq2vlb1mMBn,awj"    /* for do_set() */ | ||||
|  | ||||
| /* characters for the p_cpo option: */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user