Hi Bram,
By default, 'm' is not contained in 'formatoptions', so automatic wrapping not
work when multi-byte characters are continuously input.
Of course, I should set it up with my .vimrc, but I saw some people in trouble
with this case.
I am very happy if you can include an attached patch.
I think this change does not affect non-multi-byte-inputting people.
--
Best regards,
Hirohito Higashi (h_east)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/runtime/defaults.vim b/runtime/defaults.vim
index 0dcb92245..9d43da91f 100644
--- a/runtime/defaults.vim
+++ b/runtime/defaults.vim
@@ -59,6 +59,11 @@ endif
" confusing.
set nrformats-=octal
+" 'm': Allow auto-wrap even when multi-byte characters are followed.
+" 'M': When joining lines, don't insert a space before or after a multi-byte
+" character.
+set formatoptions+=mM
+
" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries.
if has('win32')
set guioptions-=t
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 6a34b774b..5413cd67e 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -3534,7 +3534,8 @@ A jump table for the options with a short description can be found at |Q_op|.
NOTE: This option is set to "" when 'compatible' is set.
*'formatoptions'* *'fo'*
-'formatoptions' 'fo' string (Vim default: "tcq", Vi default: "vt")
+'formatoptions' 'fo' string (Vim default: "tcq", Vi default: "vt",
+ "mM" is added in |defaults.vim|)
local to buffer
{not in Vi}
This is a sequence of letters which describes how automatic