Skip to content

Commit 65a5e20

Browse files
committed
Update options.{txt,jax}
1 parent fe19acf commit 65a5e20

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

doc/options.jax

Lines changed: 6 additions & 4 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 14
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
< カーソルが置かれているバイト数、カーソル下の文字のコード、修正フラグを

en/options.txt

Lines changed: 5 additions & 4 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 14
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. >

0 commit comments

Comments
 (0)