Skip to content

Commit dbcacc0

Browse files
committed
Update by original
1 parent 4c77228 commit dbcacc0

File tree

2 files changed

+25
-15
lines changed

2 files changed

+25
-15
lines changed

doc/options.jax

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim バージョン 9.1. Last change: 2025 Jul 01
1+
*options.txt* For Vim バージョン 9.1. Last change: 2025 Jul 05
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -2164,14 +2164,12 @@ Note 1番目の形式では、行全体がオプション指定に使われる
21642164
できる。|Funcref| 値の場合、スペースはバックスラッシュ('\')で、
21652165
コンマは 2 つのバックスラッシュ ('\\') でエスケープする必要があ
21662166
る (|option-backslash| を参照)。
2167+
他のソースとは異なり、関数はカーソルの前の非キーワード文字から
2168+
補完を提供できるが、テキストを置換する開始位置は他のソースとは
2169+
異なる場合がある。
21672170
{func} によって返される Dict に {"refresh": "always"} が含まれ
21682171
る場合、先頭のテキストが変更されるたびに関数が再度呼び出され
21692172
る。
2170-
a:findstart が 1 の場合、{func} によって返される列に関係なく補
2171-
完マッチは常にキーワード境界に挿入される。これにより、他の補完
2172-
ソースとの互換性が確保される。
2173-
挿入されたテキストをさらに変更するには、{func} で
2174-
|CompleteDonePre| を使用できる。
21752173
マッチの生成が遅くなる可能性がある場合は、ブロックを避けてエ
21762174
ディタの応答性を保つために、|complete_check()| を使用するべき
21772175
である。
@@ -2430,7 +2428,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
24302428

24312429
*'cpoptions'* *'cpo'* *cpo*
24322430
'cpoptions' 'cpo' 文字列 (Vimの既定値: "aABceFsz",
2433-
Viの既定値: "#{|&/\." を除く全てのフラグ
2431+
Viの既定値: "#{|&/\.~" を除く全てのフラグ
24342432
|$VIM_POSIX|: 全てのフラグ)
24352433
グローバル
24362434
1文字のフラグの列で設定する。フラグが設定されると、対応する動作がVi互
@@ -2714,6 +2712,14 @@ Note 1番目の形式では、行全体がオプション指定に使われる
27142712
位置が検索文字の一つ手前であればカーソルを移動しない。
27152713
フラグが含まれていない場合は、カーソルはその文字を飛び
27162714
越えて次の場所にジャンプする。
2715+
*cpo-~*
2716+
~ このオプションを指定すると、|:cd|、|:lcd|、|:tcd| で
2717+
ディレクトリを変更する際にシンボリックリンクを解決しな
2718+
い。
2719+
これにより、バッファ名やカレントディレクトリの表示時に
2720+
シンボリックリンクのパスが保持される。このオプションを
2721+
指定しない場合 (デフォルト)、シンボリックリンクはター
2722+
ゲットパスに解決される。
27172723

27182724
次のものはPOSIXフラグである。起動時に$VIM_POSIXがセットされていない限
27192725
り、これらはViの既定値には含まれない。|posix|

en/options.txt

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.1. Last change: 2025 Jul 01
1+
*options.txt* For Vim version 9.1. Last change: 2025 Jul 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2123,15 +2123,12 @@ A jump table for the options with a short description can be found at |Q_op|.
21232123
name of a function or a |Funcref|. For |Funcref| values,
21242124
spaces must be escaped with a backslash ('\'), and commas with
21252125
double backslashes ('\\') (see |option-backslash|).
2126+
Unlike other sources, functions can provide completions starting
2127+
from a non-keyword character before the cursor, and their
2128+
start position for replacing text may differ from other sources.
21262129
If the Dict returned by the {func} includes {"refresh": "always"},
21272130
the function will be invoked again whenever the leading text
21282131
changes.
2129-
Completion matches are always inserted at the keyword
2130-
boundary, regardless of the column returned by {func} when
2131-
a:findstart is 1. This ensures compatibility with other
2132-
completion sources.
2133-
To make further modifications to the inserted text, {func}
2134-
can make use of |CompleteDonePre|.
21352132
If generating matches is potentially slow, |complete_check()|
21362133
should be used to avoid blocking and preserve editor
21372134
responsiveness.
@@ -2390,7 +2387,7 @@ A jump table for the options with a short description can be found at |Q_op|.
23902387

23912388
*'cpoptions'* *'cpo'* *cpo*
23922389
'cpoptions' 'cpo' string (Vim default: "aABceFsz",
2393-
Vi default: all flags, except "#{|&/\."
2390+
Vi default: all flags, except "#{|&/\.~"
23942391
|$VIM_POSIX|: all flags)
23952392
global
23962393
A sequence of single character flags. When a character is present
@@ -2680,6 +2677,13 @@ A jump table for the options with a short description can be found at |Q_op|.
26802677
character, the cursor won't move. When not included,
26812678
the cursor would skip over it and jump to the
26822679
following occurrence.
2680+
*cpo-~*
2681+
~ When included, don't resolve symbolic links when
2682+
changing directory with |:cd|, |:lcd|, or |:tcd|.
2683+
This preserves the symbolic link path in buffer names
2684+
and when displaying the current directory. When
2685+
excluded (default), symbolic links are resolved to
2686+
their target paths.
26832687

26842688
POSIX flags. These are not included in the Vi default value, except
26852689
when $VIM_POSIX was set on startup. |posix|

0 commit comments

Comments
 (0)