options: Include "j" in default 'formatoptions' #2669

This commit is contained in:
Felipe Morales
2015-05-16 02:23:16 -03:00
committed by Justin M. Keyes
parent 1add7a422f
commit eca51bbfa0
4 changed files with 5 additions and 5 deletions

View File

@@ -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' ~

View File

@@ -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

View File

@@ -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

View File

@@ -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: */