1- *options.txt* For Vim version 9.1. Last change: 2024 Oct 16
1+ *options.txt* For Vim version 9.1. Last change: 2024 Oct 22
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3403,7 +3403,7 @@ A jump table for the options with a short description can be found at |Q_op|.
34033403
34043404 *'fileformat'* *'ff'*
34053405'fileformat' 'ff' string (MS-Windows default: "dos",
3406- Unix, macOS default: "unix")
3406+ Unix default: "unix")
34073407 local to buffer
34083408 This gives the <EOL> of the current buffer, which is used for
34093409 reading/writing the buffer from/to a file:
@@ -3426,7 +3426,7 @@ A jump table for the options with a short description can be found at |Q_op|.
34263426 *'fileformats'* *'ffs'*
34273427'fileformats' 'ffs' string (default:
34283428 Vim+Vi MS-Windows: "dos,unix",
3429- Vim Unix, macOS : "unix,dos",
3429+ Vim Unix: "unix,dos",
34303430 Vi Cygwin: "unix,dos",
34313431 Vi others: "")
34323432 global
@@ -3552,6 +3552,51 @@ A jump table for the options with a short description can be found at |Q_op|.
35523552 eob EndOfBuffer | hl-EndOfBuffer |
35533553 lastline NonText | hl-NonText |
35543554
3555+ *'findexpr'* *'fexpr'* *E1514*
3556+ 'findexpr' 'fexpr' string (default "")
3557+ global or local to buffer | global-local |
3558+ {not available when compiled without the | +eval |
3559+ feature}
3560+ Expression that is evaluated to obtain the filename(s) for the | :find |
3561+ command. When this option is empty, the internal | file-searching |
3562+ mechanism is used.
3563+
3564+ While evaluating the expression, the | v:fname | variable is set to the
3565+ argument of the | :find | command.
3566+
3567+ The expression is evaluated only once per | :find | command invocation.
3568+ The expression can process all the directories specified in 'path' .
3569+
3570+ If a match is found, the expression should return a | List | containing
3571+ one or more file names. If a match is not found, the expression
3572+ should return an empty List.
3573+
3574+ If any errors are encountered during the expression evaluation, an
3575+ empty List is used as the return value.
3576+
3577+ Using a function call without arguments is faster | expr-option-function |
3578+
3579+ It is not allowed to change text or jump to another window while
3580+ evaluating 'findexpr' | textlock | .
3581+
3582+ This option cannot be set from a | modeline | or in the | sandbox | , for
3583+ security reasons.
3584+
3585+ Examples:
3586+ >
3587+ " Use glob()
3588+ func FindExprGlob()
3589+ return glob(v:fname, v:false, v:true)
3590+ endfunc
3591+ set findexpr=FindExprGlob()
3592+
3593+ " Use the 'git ls-files' output
3594+ func FindGitFiles()
3595+ let fnames = systemlist('git ls-files')
3596+ return fnames->filter('v:val =~? v:fname')
3597+ endfunc
3598+ set findexpr=FindGitFiles()
3599+ <
35553600 *'fixendofline'* *'fixeol'* *'nofixendofline'* *'nofixeol'*
35563601'fixendofline' 'fixeol' boolean (default on)
35573602 local to buffer
@@ -4917,7 +4962,7 @@ A jump table for the options with a short description can be found at |Q_op|.
49174962 set and to the Vim default value when 'compatible' is reset.
49184963
49194964 *'isprint'* *'isp'*
4920- 'isprint' 'isp' string (default for Win32 and macOS :
4965+ 'isprint' 'isp' string (default for Win32 and VMS :
49214966 "@,~-255"; otherwise: "@,161-255")
49224967 global
49234968 The characters given by this option are displayed directly on the
@@ -6742,9 +6787,6 @@ A jump table for the options with a short description can be found at |Q_op|.
67426787 $VIMRUNTIME,
67436788 $VIM/vimfiles/after,
67446789 $HOME/vimfiles/after"
6745- macOS: "$VIM:vimfiles,
6746- $VIMRUNTIME,
6747- $VIM:vimfiles:after"
67486790 Haiku: "$BE_USER_SETTINGS/vim,
67496791 $VIM/vimfiles,
67506792 $VIMRUNTIME,
@@ -9057,7 +9099,6 @@ A jump table for the options with a short description can be found at |Q_op|.
90579099 for Win32: "$HOME/vimfiles/view",
90589100 for Unix: "$HOME/.vim/view" or
90599101 "$XDG_CONFIG_HOME/vim/view"
9060- for macOS: "$VIM/vimfiles/view",
90619102 for VMS: "sys$login:vimfiles/view")
90629103 global
90639104 {not available when compiled without the | +mksession |
0 commit comments