summaryrefslogtreecommitdiffstats
path: root/runtime/doc/change.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-11 18:00:22 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-11 18:00:22 +0200
commitd473c8c101262702ea9eeb14907ee20a786942b2 (patch)
tree2837d2cd3d597959693ae8ffc8d0dd686c425f75 /runtime/doc/change.txt
parentf53c692240851f71b930e80a0b0b5d4cfcc1b4a3 (diff)
Update runtime files.
Diffstat (limited to 'runtime/doc/change.txt')
-rw-r--r--runtime/doc/change.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt
index 1ad2930d44..1670db634b 100644
--- a/runtime/doc/change.txt
+++ b/runtime/doc/change.txt
@@ -1447,7 +1447,7 @@ to the name of an external program for Vim to use for text formatting. The
program.
*format-formatexpr*
-The 'formatexpr' option can be set to a Vim Script function that performs
+The 'formatexpr' option can be set to a Vim script function that performs
reformatting of the buffer. This should usually happen in an |ftplugin|,
since formatting is highly dependent on the type of file. It makes
sense to use an |autoload| script, so the corresponding script is only loaded
@@ -1481,7 +1481,7 @@ text. Put it in your autoload directory, e.g. ~/.vim/autoload/format.vim: >
You can then enable the formatting by executing: >
setlocal formatexpr=format#Format()
->
+
Note: this function explicitly returns non-zero when called from insert mode
(which basically means, text is inserted beyond the 'textwidth' limit). This
causes Vim to fall back to reformat the text by using the internal formatter.