Skip to content

Commit 52f5433

Browse files
authored
Merge pull request #1750 from vim-jp/hh-update-options
Update options.{txt,jax}
2 parents 44c52fa + 98a5fbf commit 52f5433

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

doc/options.jax

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim バージョン 9.1. Last change: 2024 Oct 06
1+
*options.txt* For Vim バージョン 9.1. Last change: 2024 Oct 16
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1196,12 +1196,14 @@ Note 1番目の形式では、行全体がオプション指定に使われる
11961196
えば全てのファイルがシンボリックリンクやハードリンクになっているソース
11971197
ツリーで便利である。変更がローカルのソースツリーに対してだけ行われ、元
11981198
のソースツリーには反映されない。
1199-
*crontab*
1199+
*crontab*
12001200
"no" と "auto" では問題が起きる場合がある。プログラムによっては、ファ
12011201
イルを開き、Vimを呼び出してそのファイルを編集させ、(ファイル区別プログ
12021202
ラムを使って) そのファイルが変更されたかどうかを調べるものがある。そう
12031203
したプログラムは新しく書き出されたファイルではなく、バックアップファイ
1204-
ルの方を調べてしまう。例としては "crontab -e" が挙げられる。
1204+
ルの方を調べてしまう。"crontab -e" は例であり、inotify のようないくつ
1205+
かの |file-watcher| デーモンも同様である。その場合は、このオプションを
1206+
切り替える必要があるだろう。
12051207

12061208
コピーの方法のときは、元のファイルの中身はいったん空になり、そこに新し
12071209
いテキストが書き込まれる。つまり、元のファイルの保護ビット、ファイル所
@@ -8005,7 +8007,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
80058007

80068008
例:
80078009
'ruler' がオンのときの標準のステータス行に似せる >
8008-
:set statusline=%<%f%h%m%r%=%l,%c%V\ %P
8010+
:set statusline=%<%f\ %h%w%m%r%=%-14.(%l,%c%V%)\ %P
80098011
< 同上、しかしカーソル下の文字の10/16進表現を表示する ("ga" のように) >
80108012
:set statusline=%<%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P
80118013
< カーソルが置かれているバイト数、カーソル下の文字のコード、修正フラグを
@@ -8749,7 +8751,9 @@ Note 1番目の形式では、行全体がオプション指定に使われる
87498751
のタイトルが復元される |X11|。
87508752

87518753
値に関数 printf 形式の '%' による書式指定が含まれているときは、
8752-
'statusline' と同じ方法で展開される。
8754+
'statusline' と同じ方法で展開される。無効な '%' 形式が含まれている場
8755+
合、値はそのまま使用され、値が設定される時にエラーや警告は表示されな
8756+
い。
87538757
'modelineexpr' がオフの場合は、モードラインでこのオプションを設定する
87548758
ことはできない。
87558759

en/options.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.1. Last change: 2024 Oct 06
1+
*options.txt* For Vim version 9.1. Last change: 2024 Oct 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1151,12 +1151,13 @@ A jump table for the options with a short description can be found at |Q_op|.
11511151
useful for example in source trees where all the files are symbolic or
11521152
hard links and any changes should stay in the local source tree, not
11531153
be propagated back to the original source.
1154-
*crontab*
1154+
*crontab*
11551155
One situation where "no" and "auto" will cause problems: A program
11561156
that opens a file, invokes Vim to edit that file, and then tests if
11571157
the open file was changed (through the file descriptor) will check the
11581158
backup file instead of the newly created file. "crontab -e" is an
1159-
example.
1159+
example, as are several |file-watcher| daemons like inotify. In that
1160+
case you probably want to switch this option.
11601161

11611162
When a copy is made, the original file is truncated and then filled
11621163
with the new text. This means that protection bits, owner and
@@ -7969,7 +7970,7 @@ A jump table for the options with a short description can be found at |Q_op|.
79697970

79707971
Examples:
79717972
Emulate standard status line with 'ruler' set >
7972-
:set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
7973+
:set statusline=%<%f\ %h%w%m%r%=%-14.(%l,%c%V%)\ %P
79737974
< Similar, but add ASCII value of char under the cursor (like "ga") >
79747975
:set statusline=%<%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P
79757976
< Display byte count and byte value, modified flag in red. >
@@ -8704,7 +8705,9 @@ A jump table for the options with a short description can be found at |Q_op|.
87048705
be restored if possible, see |X11|.
87058706

87068707
When this option contains printf-style '%' items, they will be
8707-
expanded according to the rules used for 'statusline'.
8708+
expanded according to the rules used for 'statusline'. If it contains
8709+
an invalid '%' format, the value is used as-is and no error or warning
8710+
will be given when the value is set.
87088711
This option cannot be set in a modeline when 'modelineexpr' is off.
87098712

87108713
Example: >

0 commit comments

Comments
 (0)