Skip to content

Update usr_04.{txt, jax} #751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions doc/usr_04.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*usr_04.txt* For Vim バージョン 8.1. Last change: 2014 Aug 29
*usr_04.txt* For Vim バージョン 8.2. Last change: 2019 Nov 21

VIM USER MANUAL - by Bram Moolenaar

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

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確認が遅くなってすみません。
この段落、各行に余計な空白が入っています。削除をお願いします。
s/削除さ れて/削除されて/
etc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

56e5e89 で修正しました



その他の変更コマンド
Expand Down Expand Up @@ -138,7 +138,7 @@

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

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

"d" や "x" などのコマンドで何かを削除すると、そのテキストは記録されます。"p"
"d" や "x" または別のコマンドで何かを削除すると、そのテキストは記録されます。"p"
コマンドを使うと、そのテキストをペースト (貼り付け。Vimではこれをプットと呼び
ます) できます。
どのように動くかを見てみましょう。まず、削除したい行にカーソルを移動し、"dd"
Expand Down Expand Up @@ -383,7 +383,7 @@ GUI を使っていない場合やメニューを使いたくない場合は他
"*p

この機能はクリップボードをサポートした Vim でのみ動きます。クリップボードにつ
いての詳細は|09.3|章 と |clipboard|をご覧ください
いての詳細は|09.3|章 と |clipboard|にあります

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

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この段落も、各行に余計な空白が入っています。削除をお願いします。
s/ま す。/ます。/
s/前 後の/前後の/
s/し ておきたい/しておきたい/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

56e5e89 で修正しました


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

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

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

x カーソル位置の文字を削除 ("dl" と同じ)
X カーソル位置の直前の文字を削除 ("dh" と同じ)
Expand Down
72 changes: 37 additions & 35 deletions en/usr_04.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*usr_04.txt* For Vim version 8.1. Last change: 2014 Aug 29
*usr_04.txt* For Vim version 8.2. Last change: 2019 Nov 21

VIM USER MANUAL - by Bram Moolenaar

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

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

If you have paid attention, you will have noticed something strange: The space
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you have paid attention, が削除されたので、対応する訳の方も削除しましょう。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

b21f8fd で修正しました

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


MORE CHANGES
Expand All @@ -114,7 +114,7 @@ Insert mode and append new text.
SHORTCUTS

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

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

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

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

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

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

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

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

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

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

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

追加されたcan be foundの訳を追加お願いします。
.jaxの389行目辺り、以下のような感じでしょうか?
s/をご覧ください。/にあります。/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

b21f8fd で修正しました


==============================================================================
*04.8* Text objects
Expand All @@ -401,8 +403,8 @@ to do this: "daw".

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

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

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

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

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

You can find a list of operators here: |operator|
You can find a list of operators here: |operator|.

For example, there are many other ways to delete pieces of text. Here are a
few often used ones:
few common ones:

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


There are a few often used commands to make changes that didn't fit somewhere
There are a few common commands to make changes that didn't fit somewhere
else:

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

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