diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-08-24 08:15:34 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2026-08-24 08:17:27 +0800 |
| commit | cbe513fca6dd294190538c48486f619efc7f79c1 (patch) | |
| tree | 8ea4023ef5ef5020a4a4faaffc492aecf398992c /runtime/plugin/python_setup.vim | |
| parent | 15beb0f7ce3f2eaa6be86df7ee5a106f2337356f (diff) | |
| download | rneovim-cbe513fca6dd294190538c48486f619efc7f79c1.tar.gz rneovim-cbe513fca6dd294190538c48486f619efc7f79c1.tar.bz2 rneovim-cbe513fca6dd294190538c48486f619efc7f79c1.zip | |
vim-patch:63d08d4: runtime(doc): update :h write-plugin and readdir() example
1) The complete example plugin at :h write-plugin the end of the
documentation didn't reflect the snippets provided during the
tutorial. In most of the Add() function, interpolated strings are
used, but the final result used concatenated strings.
2) The example provided in readdir() to get a list of files ending in
".txt" didn't properly escape the dot in the regular expression:
readdir(dirname, {n -> n =~ '.txt$'})
This would match any file ending with "txt" that is at least 4
characters long, instead it should be:
readdir(dirname, {n -> n =~ '\.txt$'})
closes: vim/vim#21123
https://github.com/vim/vim/commit/63d08d43862ed195da78cfb1bebe2c0ed02f80b7
Co-authored-by: Josep Puigdemont <josep.puigdemont@gmail.com>
Diffstat (limited to 'runtime/plugin/python_setup.vim')
0 files changed, 0 insertions, 0 deletions