Skip to content

Commit daccdcb

Browse files
authored
Merge pull request #751 from higashi000/usr04-translation
Update usr_04.{txt, jax}
2 parents ad5d383 + 1927b8d commit daccdcb

File tree

2 files changed

+54
-52
lines changed

2 files changed

+54
-52
lines changed

doc/usr_04.jax

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_04.txt* For Vim バージョン 8.1. Last change: 2014 Aug 29
1+
*usr_04.txt* For Vim バージョン 8.2. Last change: 2019 Nov 21
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -89,13 +89,13 @@
8989
be この文字列を挿入する
9090
<Esc> ノーマルモードに戻る
9191

92-
勘のいい人なら、ちょっと変だと感じるかも知れません。"human" の前の空白が削除さ
93-
れていないのです。"どんな問題に関しても単純で、明解で、間違った答えがある" と
94-
いう格言があります。この "cw" コマンドを使った例がまさにそれです。"c" オペレー
95-
タは "d" オペレータと全く同じように使えますが、"cw" はその例外なのです。実際に
96-
はこれは "ce" と同じく、単語末までを変更します。ですから、単語の後ろの空白は含
97-
まれないのです。これはかつての Vi までさかのぼる例外です。多くの人々がこれを
98-
使っているので、Vim でも不本意ながら残してあるのです。
92+
ちょっと変だと感じるかも知れません。"human" の前の空白が削除さ れていないので
93+
。"どんな問題に関しても単純で、明解で、間違った答えがある" と いう格言があり
94+
ます。この "cw" コマンドを使った例がまさにそれです。"c" オペレー タは "d" オペ
95+
レータと全く同じように使えますが、"cw" はその例外なのです。実際に はこれは
96+
"ce" と同じく、単語末までを変更します。ですから、単語の後ろの空白は含 まれない
97+
のです。これはかつての Vi までさかのぼる例外です。多くの人々がこれを 使ってい
98+
るので、Vim でも不本意ながら残してあるのです。
9999

100100

101101
その他の変更コマンド
@@ -138,7 +138,7 @@
138138

139139
"r" コマンドはオペレータではありません。文字が入力されるまで待機し、入力された
140140
文字で、カーソル下の文字を置き換えます。"cl" や "s" でも同じ事ができますが、
141-
"r" の場合は最後に <Esc> を押す必要がありません
141+
"r" の場合は <Esc> を押して挿入モードを終了する必要はありません
142142

143143
there is somerhing grong here ~
144144
rT rt rw
@@ -266,7 +266,7 @@ Note: ビジュアルモードの "o" と "O" はノーマルモードのコマ
266266
==============================================================================
267267
*04.5* テキストの移動
268268

269-
"d" や "x" などのコマンドで何かを削除すると、そのテキストは記録されます。"p"
269+
"d" や "x" または別のコマンドで何かを削除すると、そのテキストは記録されます。"p"
270270
コマンドを使うと、そのテキストをペースト (貼り付け。Vimではこれをプットと呼び
271271
ます) できます。
272272
どのように動くかを見てみましょう。まず、削除したい行にカーソルを移動し、"dd"
@@ -383,7 +383,7 @@ GUI を使っていない場合やメニューを使いたくない場合は他
383383
"*p
384384
385385
この機能はクリップボードをサポートした Vim でのみ動きます。クリップボードにつ
386-
いての詳細は|09.3|章 と |clipboard|をご覧ください
386+
いての詳細は|09.3|章 と |clipboard|にあります
387387

388388
==============================================================================
389389
*04.8* テキストオブジェクト
@@ -427,10 +427,10 @@ Word" の意味です。つまり "daw" は "Delete A Word" という意味に
427427
some text. ~
428428

429429
"cis" は変更オペレータの "c" とテキストオブジェクトの "is" から成ります。"is"
430-
は "Inner Sentence" の意味です。"as" (a sentence) オブジェクトというのもありま
431-
す。"as" は文の後の空白を含みますが、"is" は含みません。文を削除するときに、
432-
後の空白も同時に消したい場合は "das" を使います。文を修正するため、空白を残し
433-
ておきたい場合は "cis" を使えばよいでしょう。
430+
は "Inner Sentence" の意味です。"as" ("A Sentence") オブジェクトというのもあり
431+
す。"as" は文の後の空白を含みますが、"is" は含みません。文を削除するときに、
432+
後の空白も同時に消したい場合は "das" を使います。文を修正するため、空白を残
433+
ておきたい場合は "cis" を使えばよいでしょう。
434434

435435
テキストオブジェクトはビジュアルモードでも使えます。テキストオブジェクトを選択
436436
範囲に含めることができます。テキストオブジェクトを指定してもビジュアルモードは
@@ -470,8 +470,8 @@ undo するような働きをします。
470470

471471
オペレータの一覧は |operator| を参照してください。
472472

473-
テキストの一部を削除するには数多くの方法があります。ほんの一部ですが、よく使
474-
うものを挙げておきましょう
473+
テキストの一部を削除するには数多くの方法があります。ほんの一部ですが、一般的な
474+
ものを挙げておきましょう
475475

476476
x カーソル位置の文字を削除 ("dl" と同じ)
477477
X カーソル位置の直前の文字を削除 ("dh" と同じ)

en/usr_04.txt

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_04.txt* For Vim version 8.1. Last change: 2014 Aug 29
1+
*usr_04.txt* For Vim version 8.2. Last change: 2019 Nov 21
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -33,7 +33,7 @@ using a count: "4x" deletes four characters.
3333
move word command. In fact, the "d" command may be followed by any motion
3434
command, and it deletes from the current location to the place where the
3535
cursor winds up.
36-
The "4w" command, for example, moves the cursor over four words. The d4w
36+
The "4w" command, for example, moves the cursor over four words. The "d4w"
3737
command deletes four words.
3838

3939
To err is human. To really foul up you need a computer. ~
@@ -91,14 +91,14 @@ This "c2wbe<Esc>" contains these bits:
9191
be insert this text
9292
<Esc> back to Normal mode
9393

94-
If you have paid attention, you will have noticed something strange: The space
95-
before "human" isn't deleted. There is a saying that for every problem there
96-
is an answer that is simple, clear, and wrong. That is the case with the
97-
example used here for the "cw" command. The c operator works just like the
98-
d operator, with one exception: "cw". It actually works like "ce", change to
99-
end of word. Thus the space after the word isn't included. This is an
100-
exception that dates back to the old Vi. Since many people are used to it
101-
now, the inconsistency has remained in Vim.
94+
You will have noticed something strange: The space before "human" isn't
95+
deleted. There is a saying that for every problem there is an answer that is
96+
simple, clear, and wrong. That is the case with the example used here for the
97+
"cw" command. The c operator works just like the d operator, with one
98+
exception: "cw". It actually works like "ce", change to end of word. Thus
99+
the space after the word isn't included. This is an exception that dates back
100+
to the old Vi. Since many people are used to it now, the inconsistency has
101+
remained in Vim.
102102

103103

104104
MORE CHANGES
@@ -114,7 +114,7 @@ Insert mode and append new text.
114114
SHORTCUTS
115115

116116
Some operator-motion commands are used so often that they have been given a
117-
single letter command:
117+
single-letter command:
118118

119119
x stands for dl (delete character under the cursor)
120120
X stands for dh (delete character left of the cursor)
@@ -138,6 +138,7 @@ REPLACING WITH ONE CHARACTER
138138
The "r" command is not an operator. It waits for you to type a character, and
139139
will replace the character under the cursor with it. You could do the same
140140
with "cl" or with the "s" command, but with "r" you don't have to press <Esc>
141+
to get back out of insert mode.
141142

142143
there is somerhing grong here ~
143144
rT rt rw
@@ -164,7 +165,7 @@ The "." command is one of the most simple yet powerful commands in Vim. It
164165
repeats the last change. For instance, suppose you are editing an HTML file
165166
and want to delete all the <B> tags. You position the cursor on the first <
166167
and delete the <B> with the command "df>". You then go to the < of the next
167-
</B> and kill it using the "." command. The "." command executes the last
168+
</B> and delete it using the "." command. The "." command executes the last
168169
change command (in this case, "df>"). To delete another tag, position the
169170
cursor on the < and use the "." command.
170171

@@ -176,8 +177,8 @@ cursor on the < and use the "." command.
176177
f< find next < ------------->
177178
. repeat df> -->
178179

179-
The "." command works for all changes you make, except for the "u" (undo),
180-
CTRL-R (redo) and commands that start with a colon (:).
180+
The "." command works for all changes you make, except for "u" (undo), CTRL-R
181+
(redo) and commands that start with a colon (:).
181182

182183
Another example: You want to change the word "four" to "five". It appears
183184
several times in your text. You can do this quickly with this sequence of
@@ -201,7 +202,8 @@ change. Then you can use Visual mode.
201202
You start Visual mode by pressing "v". You move the cursor over the text you
202203
want to work on. While you do this, the text is highlighted. Finally type
203204
the operator command.
204-
For example, to delete from halfway one word to halfway another word:
205+
For example, to delete from the middle of one word to the middle of another
206+
word:
205207

206208
This is an examination sample of visual mode ~
207209
---------->
@@ -269,8 +271,8 @@ where they open a new line below or above the cursor.
269271
==============================================================================
270272
*04.5* Moving text
271273

272-
When you delete something with the "d", "x", or another command, the text is
273-
saved. You can paste it back by using the p command. (The Vim name for
274+
When you delete something with "d", "x", or another command, the text is
275+
saved. You can paste it back by using the "p" command. (The Vim name for
274276
this is put).
275277
Take a look at how this works. First you will delete an entire line, by
276278
putting the cursor on the line you want to delete and typing "dd". Now you
@@ -362,11 +364,11 @@ Use "y$" to yank to the end of the line.
362364

363365
If you are using the GUI version of Vim (gvim), you can find the "Copy" item
364366
in the "Edit" menu. First select some text with Visual mode, then use the
365-
Edit/Copy menu. The selected text is now copied to the clipboard. You can
366-
paste the text in other programs. In Vim itself too.
367+
Edit/Copy menu item. The selected text is now copied to the clipboard. You
368+
can paste the text in other programs. In Vim itself too.
367369

368370
If you have copied text to the clipboard in another application, you can paste
369-
it in Vim with the Edit/Paste menu. This works in Normal mode and Insert
371+
it in Vim with the Edit/Paste menu item. This works in Normal mode and Insert
370372
mode. In Visual mode the selected text is replaced with the pasted text.
371373

372374
The "Cut" menu item deletes the text before it's put on the clipboard. The
@@ -385,7 +387,7 @@ To put text from the clipboard back into the text: >
385387
"*p
386388
387389
This only works on versions of Vim that include clipboard support. More about
388-
the clipboard in section |09.3| and here: |clipboard|.
390+
the clipboard can be found in section |09.3| and here: |clipboard|.
389391

390392
==============================================================================
391393
*04.8* Text objects
@@ -401,8 +403,8 @@ to do this: "daw".
401403

402404
The "d" of "daw" is the delete operator. "aw" is a text object. Hint: "aw"
403405
stands for "A Word". Thus "daw" is "Delete A Word". To be precise, the white
404-
space after the word is also deleted (the white space before the word at the
405-
end of the line).
406+
space after the word is also deleted (or the white space before the word if at
407+
the end of the line).
406408

407409
Using text objects is the third way to make changes in Vim. We already had
408410
operator-motion and Visual mode. Now we add operator-text object.
@@ -429,11 +431,11 @@ sentence "Another line.":
429431
some text. ~
430432

431433
"cis" consists of the "c" (change) operator and the "is" text object. This
432-
stands for "Inner Sentence". There is also the "as" (a sentence) object. The
433-
difference is that "as" includes the white space after the sentence and "is"
434-
doesn't. If you would delete a sentence, you want to delete the white space
435-
at the same time, thus use "das". If you want to type new text the white
436-
space can remain, thus you use "cis".
434+
stands for "Inner Sentence". There is also the "as" ("A Sentence") object.
435+
The difference is that "as" includes the white space after the sentence and
436+
"is" doesn't. If you would delete a sentence, you want to delete the white
437+
space at the same time, thus use "das". If you want to type new text the
438+
white space can remain, thus you use "cis".
437439

438440
You can also use text objects in Visual mode. It will include the text object
439441
in the Visual selection. Visual mode continues, thus you can do this several
@@ -470,13 +472,13 @@ character.
470472
*04.10* Conclusion
471473

472474
The operators, movement commands and text objects give you the possibility to
473-
make lots of combinations. Now that you know how it works, you can use N
475+
make lots of combinations. Now that you know how they work, you can use N
474476
operators with M movement commands to make N * M commands!
475477

476-
You can find a list of operators here: |operator|
478+
You can find a list of operators here: |operator|.
477479

478480
For example, there are many other ways to delete pieces of text. Here are a
479-
few often used ones:
481+
few common ones:
480482

481483
x delete character under the cursor (short for "dl")
482484
X delete character before the cursor (short for "dh")
@@ -492,14 +494,14 @@ If you use "c" instead of "d" they become change commands. And with "y" you
492494
yank the text. And so forth.
493495

494496

495-
There are a few often used commands to make changes that didn't fit somewhere
497+
There are a few common commands to make changes that didn't fit somewhere
496498
else:
497499

498-
~ change case of the character under the cursor, and move the
500+
~ Change case of the character under the cursor, and move the
499501
cursor to the next character. This is not an operator (unless
500502
'tildeop' is set), thus you can't use it with a motion
501-
command. It does work in Visual mode and changes case for
502-
all the selected text then.
503+
command. It does work in Visual mode, where it changes case
504+
for all the selected text.
503505

504506
I Start Insert mode after moving the cursor to the first
505507
non-blank in the line.

0 commit comments

Comments
 (0)