diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-07 14:54:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-07 14:54:11 +0100 |
commit | 2bf875f881f7c6f6900bc0eb2a93a552db894109 (patch) | |
tree | 43f3b1e70f88d05eeae1020899af539b23775846 /runtime/doc/change.txt | |
parent | aa04e1b0be343ff606e25a48d59bc057edcc6e87 (diff) |
patch 8.2.4907: some users do not want a line comment always insertedv8.2.4907
Problem: Some users do not want a line comment always inserted.
Solution: Add the '/' flag to 'formatoptions' to not repeat the comment
leader after a statement when using "o".
Diffstat (limited to 'runtime/doc/change.txt')
-rw-r--r-- | runtime/doc/change.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index 6278b7dca8..ff6995d000 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -1673,9 +1673,9 @@ readability. letter meaning when present in 'formatoptions' ~ *fo-t* -t Auto-wrap text using textwidth +t Auto-wrap text using 'textwidth' *fo-c* -c Auto-wrap comments using textwidth, inserting the current comment +c Auto-wrap comments using 'textwidth', inserting the current comment leader automatically. *fo-r* r Automatically insert the current comment leader after hitting @@ -1684,6 +1684,9 @@ r Automatically insert the current comment leader after hitting o Automatically insert the current comment leader after hitting 'o' or 'O' in Normal mode. In case comment is unwanted in a specific place use CTRL-U to quickly delete it. |i_CTRL-U| + *fo-/* +/ When 'o' is included: do not insert the comment leader for a // + comment after a statement, only when // is at the start of the line. *fo-q* q Allow formatting of comments with "gq". Note that formatting will not change blank lines or lines containing @@ -1746,8 +1749,8 @@ B When joining lines, don't insert a space between two multibyte 1 Don't break a line after a one-letter word. It's broken before it instead (if possible). *fo-]* -] Respect textwidth rigorously. With this flag set, no line can be - longer than textwidth, unless line-break-prohibition rules make this +] Respect 'textwidth' rigorously. With this flag set, no line can be + longer than 'textwidth', unless line-break-prohibition rules make this impossible. Mainly for CJK scripts and works only if 'encoding' is "utf-8". *fo-j* |