Mercurial > vim
diff runtime/doc/change.txt @ 14519:5c5908e81e93
Update runtime files.
commit https://github.com/vim/vim/commit/d473c8c101262702ea9eeb14907ee20a786942b2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 11 18:00:22 2018 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 11 Aug 2018 18:15:06 +0200 |
parents | 0a69e6e708f9 |
children | 40ef13331e02 |
line wrap: on
line diff
--- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -1447,7 +1447,7 @@ to the name of an external program for V 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 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.