vim-patch:992e307: runtime(doc): update list of modifiers at :h expand() (#35957)

fixes: vim/vim#18435

992e30774f

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-09-30 08:26:40 +08:00
committed by GitHub
parent e7a03dd4e8
commit af2932e2dc
6 changed files with 12 additions and 3 deletions

View File

@@ -2413,7 +2413,7 @@ vim.bo.fenc = vim.bo.fileencoding
--- illegal byte sequence.
--- WRONG VALUES: WHAT'S WRONG:
--- latin1,utf-8 "latin1" will always be used
--- utf-8,ucs-bom,latin1 BOM won't be recognized in an utf-8
--- utf-8,ucs-bom,latin1 BOM won't be recognized in a utf-8
--- file
--- cp1250,latin1 "cp1250" will always be used
--- If 'fileencodings' is empty, 'fileencoding' is not modified.

View File

@@ -1893,6 +1893,9 @@ function vim.fn.exp(expr) end
--- :r Root (one extension removed)
--- :e Extension only
---
--- More modifiers are supported, for the full list see
--- |filename-modifiers|.
---
--- Example: >vim
--- let &tags = expand("%:p:h") .. "/tags"
--- <Note that when expanding a string that starts with '%', '#' or