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
2
2
3
3
4
4
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|.
3403
3403
3404
3404
*'fileformat'* *'ff'*
3405
3405
'fileformat' 'ff' string (MS-Windows default: "dos",
3406
- Unix, macOS default: "unix")
3406
+ Unix default: "unix")
3407
3407
local to buffer
3408
3408
This gives the <EOL> of the current buffer, which is used for
3409
3409
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|.
3426
3426
*'fileformats'* *'ffs'*
3427
3427
'fileformats' 'ffs' string (default:
3428
3428
Vim+Vi MS-Windows: "dos,unix",
3429
- Vim Unix, macOS : "unix,dos",
3429
+ Vim Unix: "unix,dos",
3430
3430
Vi Cygwin: "unix,dos",
3431
3431
Vi others: "")
3432
3432
global
@@ -3552,6 +3552,51 @@ A jump table for the options with a short description can be found at |Q_op|.
3552
3552
eob EndOfBuffer | hl-EndOfBuffer |
3553
3553
lastline NonText | hl-NonText |
3554
3554
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
+ <
3555
3600
*'fixendofline'* *'fixeol'* *'nofixendofline'* *'nofixeol'*
3556
3601
'fixendofline' 'fixeol' boolean (default on)
3557
3602
local to buffer
@@ -4917,7 +4962,7 @@ A jump table for the options with a short description can be found at |Q_op|.
4917
4962
set and to the Vim default value when 'compatible' is reset.
4918
4963
4919
4964
*'isprint'* *'isp'*
4920
- 'isprint' 'isp' string (default for Win32 and macOS :
4965
+ 'isprint' 'isp' string (default for Win32 and VMS :
4921
4966
"@,~-255"; otherwise: "@,161-255")
4922
4967
global
4923
4968
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|.
6742
6787
$VIMRUNTIME,
6743
6788
$VIM/vimfiles/after,
6744
6789
$HOME/vimfiles/after"
6745
- macOS: "$VIM:vimfiles,
6746
- $VIMRUNTIME,
6747
- $VIM:vimfiles:after"
6748
6790
Haiku: "$BE_USER_SETTINGS/vim,
6749
6791
$VIM/vimfiles,
6750
6792
$VIMRUNTIME,
@@ -9057,7 +9099,6 @@ A jump table for the options with a short description can be found at |Q_op|.
9057
9099
for Win32: "$HOME/vimfiles/view",
9058
9100
for Unix: "$HOME/.vim/view" or
9059
9101
"$XDG_CONFIG_HOME/vim/view"
9060
- for macOS: "$VIM/vimfiles/view",
9061
9102
for VMS: "sys$login:vimfiles/view")
9062
9103
global
9063
9104
{not available when compiled without the | +mksession |
0 commit comments