diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-11 18:00:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-11 18:00:22 +0200 |
commit | d473c8c101262702ea9eeb14907ee20a786942b2 (patch) | |
tree | 2837d2cd3d597959693ae8ffc8d0dd686c425f75 /runtime/doc/change.txt | |
parent | f53c692240851f71b930e80a0b0b5d4cfcc1b4a3 (diff) | |
download | vim-git-d473c8c101262702ea9eeb14907ee20a786942b2.tar.gz |
Update runtime files.
Diffstat (limited to 'runtime/doc/change.txt')
-rw-r--r-- | runtime/doc/change.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index 1ad2930d4..1670db634 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. |