Skip to content
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

Update usr_09 from Vim 8.0 to 8.1 #227

Merged
merged 1 commit into from
Jun 8, 2018
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
14 changes: 7 additions & 7 deletions doc/usr_09.jax
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
*usr_09.txt* For Vim バージョン 8.0. Last change: 2017 Aug 11
*usr_09.txt* For Vim バージョン 8.1. Last change: 2017 Aug 11

VIM USER MANUAL - by Bram Moolenaar

GUI を使う


Vim は普通の端末で動作します。GVim はそれより少しだけ多機能です。GUI ではメ
Vim は普通の端末で動作します。gvim はそれより少しだけ多機能です。GUI ではメ
ニュー、ツールバー、スクロールバーなどが利用できます。本章では GUI が提供する
それらの機能を説明します。

Expand All @@ -21,7 +21,7 @@ Vim は普通の端末で動作します。GVim はそれより少しだけ多
==============================================================================
*09.1* GUI の部品

おそらく、gVim を起動するためのアイコンがデスクトップにあるはずです。ない場合
おそらく、gvim を起動するためのアイコンがデスクトップにあるはずです。ない場合
は、次のコマンドのどちらかで起動できます: >

gvim file.txt
Expand Down Expand Up @@ -184,11 +184,11 @@ X-Windows にはカレントセレクション ("current selection") があり
です (初期設定の場合)。選択しているテキストは特に何もしなくても他のアプリケー
ションにペーストできます。
例えば、この文章のどこかを適当にマウスで選択したとします。Vim は自動的にビジュ
アルモードに切り替わり、選択したテキストが強調表示されます。ここで、別の gVim
アルモードに切り替わり、選択したテキストが強調表示されます。ここで、別の gvim
を引数なしで起動し、空のウィンドウを開きます。中央ボタンをクリックすると、選択
したテキストが挿入されます。

カレントセレクションは他のテキストを選択するまで有効です。他の gVim にペースト
カレントセレクションは他のテキストを選択するまで有効です。他の gvim にペースト
した後、そのウィンドウのテキストを選択すると、直前に別の gvim で選択していたテ
キストの表示が変わるのが確認できると思います。その選択範囲はもうカレントセレク
ションではないのです。
Expand All @@ -204,11 +204,11 @@ X-Windows にはカレントセレクション ("current selection") があり
を避けるために、ここでは真のクリップボード ("real clipboard") と呼びます。普通
はカレントセレクションと真のクリップボードはどちらもクリップボードと呼ばれます
が、慣れてください。
真のクリップボードにテキストをプットするために、動作中の gVim で適当なテキスト
真のクリップボードにテキストをプットするために、動作中の gvim で適当なテキスト
を選択し、メニューの [編集]-[コピー] コマンドを実行してください。これで、テキ
ストが真のクリップボードにコピーされました。クリップボードの内容は専用のアプリ
ケーション (例えば KDE の Klipper) がなければ見ることはできません。
次に、別の gVim に移り、カーソルを適当なところに移動し、メニューの [編集]-[貼
次に、別の gvim に移り、カーソルを適当なところに移動し、メニューの [編集]-[貼
り付け] コマンドを実行します。真のクリップボードからテキストが挿入されます。


Expand Down
12 changes: 6 additions & 6 deletions en/usr_09.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*usr_09.txt* For Vim version 8.0. Last change: 2017 Aug 11
*usr_09.txt* For Vim version 8.1. Last change: 2017 Aug 11

VIM USER MANUAL - by Bram Moolenaar

Expand All @@ -21,7 +21,7 @@ Table of contents: |usr_toc.txt|
==============================================================================
*09.1* Parts of the GUI

You might have an icon on your desktop that starts gVim. Otherwise, one of
You might have an icon on your desktop that starts gvim. Otherwise, one of
these commands should do it: >

gvim file.txt
Expand Down Expand Up @@ -184,12 +184,12 @@ currently highlighted. In Vim this is the Visual area (this assumes you are
using the default option settings). You can paste this selection in another
application without any further action.
For example, in this text select a few words with the mouse. Vim will
switch to Visual mode and highlight the text. Now start another gVim, without
switch to Visual mode and highlight the text. Now start another gvim, without
a file name argument, so that it displays an empty window. Click the middle
mouse button. The selected text will be inserted.

The "current selection" will only remain valid until some other text is
selected. After doing the paste in the other gVim, now select some characters
selected. After doing the paste in the other gvim, now select some characters
in that window. You will notice that the words that were previously selected
in the other gvim window are displayed differently. This means that it no
longer is the current selection.
Expand All @@ -204,10 +204,10 @@ Now for the other place with which text can be exchanged. We call this the
"real clipboard", to avoid confusion. Often both the "current selection" and
the "real clipboard" are called clipboard, you'll have to get used to that.
To put text on the real clipboard, select a few different words in one of
the gVims you have running. Then use the Edit/Copy menu entry. Now the text
the gvims you have running. Then use the Edit/Copy menu entry. Now the text
has been copied to the real clipboard. You can't see this, unless you have
some application that shows the clipboard contents (e.g., KDE's Klipper).
Now select the other gVim, position the cursor somewhere and use the
Now select the other gvim, position the cursor somewhere and use the
Edit/Paste menu. You will see the text from the real clipboard is inserted.


Expand Down