Skip to content

Commit 8c74b76

Browse files
authored
Merge pull request #868 from vim-jp/update_misc_files_2
Update usr_{03,11,23,40}.{txt,jax}
2 parents 8405aa1 + 9283114 commit 8c74b76

File tree

8 files changed

+53
-49
lines changed

8 files changed

+53
-49
lines changed

doc/usr_03.jax

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_03.txt* For Vim バージョン 8.2. Last change: 2020 Feb 29
1+
*usr_03.txt* For Vim バージョン 8.2. Last change: 2020 Sep 03
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -30,25 +30,26 @@
3030

3131
カーソルを 1 単語先に進めるには、"w" コマンドを使います。他の Vim コマンドもそ
3232
うですが、複数の単語を一気に進めるために数値 (カウンタ) による回数指定ができま
33-
す。例えば、"3w" では 3 単語進みます。図で示すと次のようになります。
33+
す。例えば、"3w" では 3 単語進みます。図で示すと次のようになります ("x" でマー
34+
クされた位置から開始します):
3435

3536
This is a line with example text ~
36-
--->-->->----------------->
37+
x-->-->->----------------->
3738
w w w 3w
3839

3940
"w" で次の単語の先頭に移動します。既にカーソルが単語の先頭にある場合は、その次
4041
の単語の先頭に移動します。
4142
逆に "b" コマンドで直前の単語の先頭に戻ります。
4243

4344
This is a line with example text ~
44-
<----<--<-<---------<---
45+
<----<--<-<---------<--x
4546
b b b 2b b
4647

4748
"e" コマンドで次の単語の末尾に移動します。"ge" で直前の単語の末尾に移動します。
4849

4950
This is a line with example text ~
50-
<- <--- -----> ---->
51-
ge ge e e
51+
<----<----x---->------------>
52+
2ge ge e 2e
5253

5354
カーソルが行末の単語にある場合、"w" コマンドは次の行の最初の単語に進みます。こ
5455
れを使うと "l" よりもずっと速く文章の中を動けます。"b" は "w" の逆方向に同じ
@@ -78,12 +79,13 @@
7879
同じ意味で使えます。
7980

8081
"^" コマンドでカーソルを行頭から最初の非空白文字に移動します。"0" (数字のゼロ)
81-
コマンドは行頭に移動します。<Home>キーも同じです。図で示しましょう。
82+
コマンドは行頭に移動します。<Home>キーも同じです。図で示しましょう ("." は空白
83+
を示します):
8284

8385
^
84-
<------------
86+
<-----------x
8587
.....This is a line with example text ~
86-
<----------------- --------------->
88+
<----------------x x-------------->
8789
0 $
8890

8991
("....." は空白文字があることを示します)

doc/usr_11.jax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_11.txt* For Vim バージョン 8.2. Last change: 2020 Jul 08
1+
*usr_11.txt* For Vim バージョン 8.2. Last change: 2020 Oct 25
22

33
VIM USER MANUAL - by Bram Moolenaar
44

doc/usr_23.jax

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_23.txt* For Vim バージョン 8.2. Last change: 2006 Apr 24
1+
*usr_23.txt* For Vim バージョン 8.2. Last change: 2020 Dec 19
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -26,9 +26,10 @@
2626
文字 (キャリッジリターン。<CR>) でキャリッジを初期位置に戻し、二つ目の文字 (ラ
2727
インフィード。<LF>) で用紙を送っていたのです。
2828
コンピュータが登場した頃は記憶装置がとても高価だったので、改行のために二文字も
29-
使う必要はないと考える人たちがいました。UNIX の人々は <LF> だけを使って改行す
30-
ることに決めました。Apple の人々は <CR> を標準としました。Microsoft Windows の
31-
人々は古い <CR><LF> を使い続けました。
29+
使う必要はないと考える人たちがいました。UNIX の人々は <New Line> または <NL>
30+
を行末にのみ使用できると決めました。Apple の人々は <CR> を標準としました。
31+
Microsoft Windows の人々は古い <CR><LF> を使い続けました。(我々はヘルプテキス
32+
トの改行に <NL> を使用します)
3233
このような事情により、異なるシステム間でファイルを交換するときには改行文字の非
3334
互換が問題になります。Vim はファイル形式を自動的に認識し、それを適切に処理する
3435
ことができます。
@@ -52,19 +53,19 @@ Mac 形式なら "[mac]" と表示されます。
5253
5354
Vim では次の3つの名前が使われます:
5455

55-
unix <LF>
56-
dos <CR><LF>
56+
unix <NL>
57+
dos <CR><NL>
5758
mac <CR>
5859

5960

6061
Mac 形式を使う
6162
--------------
6263

63-
Unix では <LF> が改行文字です。行の途中に <CR> 文字がくることは普通はありませ
64+
Unix では <NL> が改行文字です。行の途中に <CR> 文字がくることは普通はありませ
6465
ん。ただし、Vi (と Vim) のスクリプトでは <CR> 文字が使われることがあります。
65-
Macintosh では <CR> が改行文字なので、行の途中に <LF> 文字を使うことができま
66+
Macintosh では <CR> が改行文字なので、行の途中に <NL> 文字を使うことができま
6667
す。
67-
つまり、<CR><LF> を両方含んでいるファイルは、ファイル形式を 100% 確実に判
68+
つまり、<CR><NL> を両方含んでいるファイルは、ファイル形式を 100% 確実に判
6869
別することはできません。
6970
そのため、Unix では Mac 形式の改行はチェックされません。おそらく、Unix で Mac
7071
形式のファイルを編集することはあまりないでしょう。どうしても Mac 形式のファイ

doc/usr_40.jax

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_40.txt* For Vim バージョン 8.2. Last change: 2020 Jul 28
1+
*usr_40.txt* For Vim バージョン 8.2. Last change: 2020 Sep 02
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -452,13 +452,13 @@ Vim では新しいコマンドを定義することができます。定義し
452452
たすべての BufWritePre 自動コマンドが実行されてから、ファイルが保存されます。
453453
:autocmd の正式な書式は次のとおりです: >
454454
455-
:autocmd [group] {events} {file-pattern} [nested] {command}
455+
:autocmd [group] {events} {file-pattern} [++nested] {command}
456456
457457
[group] は省略可能です。コマンドを管理したり呼び出したりしたい場合に使います
458458
(後述)。{events} はコマンドを実行するイベントのリストです (コンマ区切り)。
459459
{file-pattern} はファイル名です。ワイルドカードが使えます。例えば、"*.txt" な
460-
ら ".txt" で終わるファイルに対してコマンドが実行されます。 [nested] は省略可能
461-
です。自動コマンドを再帰的に呼び出したい場合に指定します (下記参照)。そして、
460+
ら ".txt" で終わるファイルに対してコマンドが実行されます。 [++nested] は省略可
461+
能です。自動コマンドを再帰的に呼び出したい場合に指定します (下記参照)。そして、
462462
実行したいコマンドを {command} に指定します。
463463

464464

@@ -581,7 +581,7 @@ BufReadPost は最も便利なイベントの一つです。これは新しい
581581
ンタックスを設定するための自動コマンドは実行されません。イベントを発行させたい
582582
場合は "nested" 引数を指定してください: >
583583
584-
:autocmd FileChangedShell * nested edit
584+
:autocmd FileChangedShell * ++nested edit
585585
586586
587587
自動コマンドを実行する

en/usr_03.txt

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_03.txt* For Vim version 8.2. Last change: 2020 Feb 29
1+
*usr_03.txt* For Vim version 8.2. Last change: 2020 Sep 03
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -30,26 +30,27 @@ Table of contents: |usr_toc.txt|
3030

3131
To move the cursor forward one word, use the "w" command. Like most Vim
3232
commands, you can use a numeric prefix to move past multiple words. For
33-
example, "3w" moves three words. This figure shows how it works:
33+
example, "3w" moves three words. This figure shows how it works (starting at
34+
the position marked with "x"):
3435

3536
This is a line with example text ~
36-
--->-->->----------------->
37+
x-->-->->----------------->
3738
w w w 3w
3839

3940
Notice that "w" moves to the start of the next word if it already is at the
4041
start of a word.
4142
The "b" command moves backward to the start of the previous word:
4243

4344
This is a line with example text ~
44-
<----<--<-<---------<---
45+
<----<--<-<---------<--x
4546
b b b 2b b
4647

4748
There is also the "e" command that moves to the next end of a word and "ge",
4849
which moves to the previous end of a word:
4950

5051
This is a line with example text ~
51-
<- <--- -----> ---->
52-
ge ge e e
52+
<----<----x---->------------>
53+
2ge ge e 2e
5354

5455
If you are at the last word of a line, the "w" command will take you to the
5556
first word in the next line. Thus you can use this to move through a
@@ -82,12 +83,12 @@ an <End> key it will do the same thing.
8283

8384
The "^" command moves to the first non-blank character of the line. The "0"
8485
command (zero) moves to the very first character of the line, and the <Home>
85-
key does the same thing. In a picture:
86+
key does the same thing. In a picture ("." indicates a space):
8687

8788
^
88-
<------------
89+
<-----------x
8990
.....This is a line with example text ~
90-
<----------------- --------------->
91+
<----------------x x-------------->
9192
0 $
9293

9394
(the "....." indicates blanks here)

en/usr_11.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_11.txt* For Vim version 8.2. Last change: 2020 Jul 08
1+
*usr_11.txt* For Vim version 8.2. Last change: 2020 Oct 25
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -294,7 +294,7 @@ If you really don't want to see this message, you can add the 'A' flag to the
294294
'shortmess' option. But it's very unusual that you need this.
295295

296296
For remarks about encryption and the swap file, see |:recover-crypt|.
297-
For programatic access to the swap file, see |swapinfo()|.
297+
For programmatic access to the swap file, see |swapinfo()|.
298298

299299
==============================================================================
300300
*11.4* Further reading

en/usr_23.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_23.txt* For Vim version 8.2. Last change: 2006 Apr 24
1+
*usr_23.txt* For Vim version 8.2. Last change: 2020 Dec 19
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -28,9 +28,9 @@ start a new line. One to move the carriage back to the first position
2828
(carriage return, <CR>), another to move the paper up (line feed, <LF>).
2929
When computers came out, storage was expensive. Some people decided that
3030
they did not need two characters for end-of-line. The UNIX people decided
31-
they could use <Line Feed> only for end-of-line. The Apple people
32-
standardized on <CR>. The Microsoft Windows folks decided to keep
33-
the old <CR><LF>.
31+
they could use <New Line> or <NL> only for end-of-line. The Apple people
32+
standardized on <CR>. The Microsoft Windows folks decided to keep the old
33+
<CR><NL> (we use <NL> for line feed in the help text).
3434
This means that if you try to move a file from one system to another, you
3535
have line-break problems. The Vim editor automatically recognizes the
3636
different file formats and handles things properly behind your back.
@@ -55,20 +55,20 @@ which format you have, execute the following command: >
5555
5656
The three names that Vim uses are:
5757

58-
unix <LF>
59-
dos <CR><LF>
58+
unix <NL>
59+
dos <CR><NL>
6060
mac <CR>
6161

6262

6363
USING THE MAC FORMAT
6464

65-
On Unix, <LF> is used to break a line. It's not unusual to have a <CR>
65+
On Unix, <NL> is used to break a line. It's not unusual to have a <CR>
6666
character halfway a line. Incidentally, this happens quite often in Vi (and
6767
Vim) scripts.
6868
On the Macintosh, where <CR> is the line break character, it's possible to
69-
have a <LF> character halfway a line.
69+
have a <NL> character halfway a line.
7070
The result is that it's not possible to be 100% sure whether a file
71-
containing both <CR> and <LF> characters is a Mac or a Unix file. Therefore,
71+
containing both <CR> and <NL> characters is a Mac or a Unix file. Therefore,
7272
Vim assumes that on Unix you probably won't edit a Mac file, and doesn't check
7373
for this type of file. To check for this format anyway, add "mac" to
7474
'fileformats': >

en/usr_40.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_40.txt* For Vim version 8.2. Last change: 2020 Jul 28
1+
*usr_40.txt* For Vim version 8.2. Last change: 2020 Sep 02
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -453,15 +453,15 @@ matching BufWritePre autocommands and executes them, and then it
453453
performs the ":write".
454454
The general form of the :autocmd command is as follows: >
455455
456-
:autocmd [group] {events} {file-pattern} [nested] {command}
456+
:autocmd [group] {events} {file-pattern} [++nested] {command}
457457
458458
The [group] name is optional. It is used in managing and calling the commands
459459
(more on this later). The {events} parameter is a list of events (comma
460460
separated) that trigger the command.
461461
{file-pattern} is a filename, usually with wildcards. For example, using
462462
"*.txt" makes the autocommand be used for all files whose name end in ".txt".
463-
The optional [nested] flag allows for nesting of autocommands (see below), and
464-
finally, {command} is the command to be executed.
463+
The optional [++nested] flag allows for nesting of autocommands (see below),
464+
and finally, {command} is the command to be executed.
465465

466466

467467
EVENTS
@@ -578,7 +578,7 @@ trigger any new events. If you read a file in response to a FileChangedShell
578578
event, it will not trigger the autocommands that would set the syntax, for
579579
example. To make the events triggered, add the "nested" argument: >
580580
581-
:autocmd FileChangedShell * nested edit
581+
:autocmd FileChangedShell * ++nested edit
582582
583583
584584
EXECUTING AUTOCOMMANDS

0 commit comments

Comments
 (0)