Skip to content

Commit 1874eb3

Browse files
committed
Update change.{txt,jax}
1 parent 322317d commit 1874eb3

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

doc/change.jax

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ gR 仮想置換モードに入る。打ち込んだ文字が画面上の既存
166166
一回で置き換えることができる。入力されたテキストを
167167
[count]-1 回繰り返す。詳細は |Virtual-Replace-mode|
168168
参照。
169-
{Vimが |+vreplace| 機能付きでコンパイルされたときのみ
170-
有効}
171169

172170
*c*
173171
["x]c{motion} {motion} のテキストを [レジスタ x に入れ] 削除し、挿入
@@ -289,8 +287,6 @@ gr{char} カーソル下の仮想文字を {char} に置き換える。この
289287
置き換える。詳細は |gR||Virtual-Replace-mode| を参
290288
照。|r| と同様、回数を指定できる。
291289
{char} の入力方法は |r| と同様である。
292-
{Vimが |+vreplace| 機能付きでコンパイルされたときのみ
293-
有効}
294290

295291
*digraph-arg*
296292
|r||t| 等のノーマルモードコマンドの引数は、1個の文字である。オプション
@@ -693,6 +689,7 @@ g& `:%s//~/&` と同義 (全ての行に対し、最後の検索パターン
693689
とリセットする。
694690
{Vi にはないもの: マッチの強調表示、'y' と 'n' 以外の応答}
695691

692+
*:s_e*
696693
[e] 検索パターンが何もマッチしなかったとき、エラーメッセージを表示しない。
697694
特にマッピング内ではエラーが発生しなかったかのように続行される。これは
698695
「パターンは見つかりませんでした」のエラーによるマッピングの中断を防ぐ
@@ -704,33 +701,38 @@ g& `:%s//~/&` と同義 (全ての行に対し、最後の検索パターン
704701
「(割込まれました)」
705702
{Vi にはない}
706703

704+
*:s_g*
707705
[g] 行中の全てのマッチを置換する。このフラグなしだと、各行の1個目のマッチ
708706
のみが置換される。オプション 'edcompatible' がオンのとき、Vimはこのフ
709707
ラグを記憶し、指定される度にオン/オフを切り替えるが、新しい検索パター
710708
ンが使われるとリセットする。'gdefault' がオンのときは、このフラグはオ
711709
ンが既定値になり、フラグ [g] を指定したときにはオフになる。
712710

711+
*:s_i*
713712
[i] パターンの大文字/小文字の区別をしない。オプション 'ignorecase'
714713
'smartcase' は使われない。
715714
{Vi にはない}
716715

716+
*:s_I*
717717
[I] パターンの大文字/小文字を区別する。オプション 'ignorecase'
718718
'smartcase' は使われない。
719719
{Vi にはない}
720720

721+
*:s_n*
721722
[n] マッチの個数を表示し、実際には置換を行わない。フラグ [c] は無視される。
722723
'report' が 0 のときと同じようにマッチが表示される。
723724
何個あるか調べるときに便利。|count-items|
724725
\= |sub-replace-expression| が使われたときは、式はそれぞれのマッチに対
725726
してサンドボックス (|sandbox|) で実行される。
726727

727-
[p] 最後に置換を行った行を表示する。
728+
[p] 最後に置換を行った行を表示する。 *:s_p*
728729
{Vi にはない}
729730

730-
[#] [p] と同様。行番号をつける。
731+
[#] [p] と同様。行番号をつける。 *:s_#*
731732

732-
[l] [p] と同様だが、|:list| のように表示する。
733+
[l] [p] と同様だが、|:list| のように表示する。 *:s_l*
733734

735+
*:s_r*
734736
[r] 引数のない `:&``:s` との連携でのみ有効。`:&r``:~` と同様に動作
735737
する。検索パターンが空のとき、最後の置換コマンドや `:global` でのパター
736738
ンではなく、最後の検索パターンを使用する。最後に検索パターンを使用した
@@ -1445,7 +1447,7 @@ autoload ディレクトリに置くこと。例、~/.vim/autoload/format.vim: >
14451447
14461448
その後以下のように整形を有効にすることができる: >
14471449
setlocal formatexpr=format#Format()
1448-
>
1450+
14491451
Note: この関数は、挿入モードから呼ばれた場合に明示的に非ゼロを返す (基本的に
14501452
'textwidth' の制限を超えてテキストが挿入されることを意味する)。これは Vim に内
14511453
部の整形機能に立ち戻って再整形させることになる。

en/change.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ gR Enter Virtual Replace mode: Each character you type
177177
<Tab> may replace several characters at once.
178178
Repeat the entered text [count]-1 times. See
179179
|Virtual-Replace-mode| for more details.
180-
{not available when compiled without the |+vreplace|
181-
feature}
182180

183181
*c*
184182
["x]c{motion} Delete {motion} text [into register x] and start
@@ -303,8 +301,6 @@ gr{char} Replace the virtual characters under the cursor with
303301
space. See |gR| and |Virtual-Replace-mode| for more
304302
details. As with |r| a count may be given.
305303
{char} can be entered like with |r|.
306-
{not available when compiled without the |+vreplace|
307-
feature}
308304

309305
*digraph-arg*
310306
The argument for Normal mode commands like |r| and |t| is a single character.
@@ -712,6 +708,7 @@ The flags that you can use for the substitute commands:
712708
search pattern.
713709
{not in Vi: highlighting of the match, other responses than 'y' or 'n'}
714710

711+
*:s_e*
715712
[e] When the search pattern fails, do not issue an error message and, in
716713
particular, continue in maps as if no error occurred. This is most
717714
useful to prevent the "No match" error from breaking a mapping. Vim
@@ -723,33 +720,38 @@ The flags that you can use for the substitute commands:
723720
Interrupted
724721
{not in Vi}
725722

723+
*:s_g*
726724
[g] Replace all occurrences in the line. Without this argument,
727725
replacement occurs only for the first occurrence in each line. If
728726
the 'edcompatible' option is on, Vim remembers this flag and toggles
729727
it each time you use it, but resets it when you give a new search
730728
pattern. If the 'gdefault' option is on, this flag is on by default
731729
and the [g] argument switches it off.
732730

731+
*:s_i*
733732
[i] Ignore case for the pattern. The 'ignorecase' and 'smartcase' options
734733
are not used.
735734
{not in Vi}
736735

736+
*:s_I*
737737
[I] Don't ignore case for the pattern. The 'ignorecase' and 'smartcase'
738738
options are not used.
739739
{not in Vi}
740740

741+
*:s_n*
741742
[n] Report the number of matches, do not actually substitute. The [c]
742743
flag is ignored. The matches are reported as if 'report' is zero.
743744
Useful to |count-items|.
744745
If \= |sub-replace-expression| is used, the expression will be
745746
evaluated in the |sandbox| at every match.
746747

747-
[p] Print the line containing the last substitute.
748+
[p] Print the line containing the last substitute. *:s_p*
748749

749-
[#] Like [p] and prepend the line number.
750+
[#] Like [p] and prepend the line number. *:s_#*
750751

751-
[l] Like [p] but print the text like |:list|.
752+
[l] Like [p] but print the text like |:list|. *:s_l*
752753

754+
*:s_r*
753755
[r] Only useful in combination with `:&` or `:s` without arguments. `:&r`
754756
works the same way as `:~`: When the search pattern is empty, use the
755757
previously used search pattern instead of the search pattern from the
@@ -1451,7 +1453,7 @@ to the name of an external program for Vim to use for text formatting. The
14511453
program.
14521454

14531455
*format-formatexpr*
1454-
The 'formatexpr' option can be set to a Vim Script function that performs
1456+
The 'formatexpr' option can be set to a Vim script function that performs
14551457
reformatting of the buffer. This should usually happen in an |ftplugin|,
14561458
since formatting is highly dependent on the type of file. It makes
14571459
sense to use an |autoload| script, so the corresponding script is only loaded
@@ -1485,7 +1487,7 @@ text. Put it in your autoload directory, e.g. ~/.vim/autoload/format.vim: >
14851487
14861488
You can then enable the formatting by executing: >
14871489
setlocal formatexpr=format#Format()
1488-
>
1490+
14891491
Note: this function explicitly returns non-zero when called from insert mode
14901492
(which basically means, text is inserted beyond the 'textwidth' limit). This
14911493
causes Vim to fall back to reformat the text by using the internal formatter.

0 commit comments

Comments
 (0)