Mercurial > vim
comparison runtime/doc/usr_09.txt @ 12785:65d7fd8381a3
Update runtime files.
commit https://github.com/vim/vim/commit/b0d45e7f5354375edd02afafde3bd37dac1515ff
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 5 18:19:24 2017 +0100
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 05 Nov 2017 18:30:05 +0100 |
parents | 444ad56c0cac |
children | 1174611ad715 |
comparison
equal
deleted
inserted
replaced
12784:b38715f6a758 | 12785:65d7fd8381a3 |
---|---|
19 Table of contents: |usr_toc.txt| | 19 Table of contents: |usr_toc.txt| |
20 | 20 |
21 ============================================================================== | 21 ============================================================================== |
22 *09.1* Parts of the GUI | 22 *09.1* Parts of the GUI |
23 | 23 |
24 You might have an icon on your desktop that starts gVim. Otherwise, one of | 24 You might have an icon on your desktop that starts gvim. Otherwise, one of |
25 these commands should do it: > | 25 these commands should do it: > |
26 | 26 |
27 gvim file.txt | 27 gvim file.txt |
28 vim -g file.txt | 28 vim -g file.txt |
29 | 29 |
182 In X-Windows there is the "current selection". This is the text that is | 182 In X-Windows there is the "current selection". This is the text that is |
183 currently highlighted. In Vim this is the Visual area (this assumes you are | 183 currently highlighted. In Vim this is the Visual area (this assumes you are |
184 using the default option settings). You can paste this selection in another | 184 using the default option settings). You can paste this selection in another |
185 application without any further action. | 185 application without any further action. |
186 For example, in this text select a few words with the mouse. Vim will | 186 For example, in this text select a few words with the mouse. Vim will |
187 switch to Visual mode and highlight the text. Now start another gVim, without | 187 switch to Visual mode and highlight the text. Now start another gvim, without |
188 a file name argument, so that it displays an empty window. Click the middle | 188 a file name argument, so that it displays an empty window. Click the middle |
189 mouse button. The selected text will be inserted. | 189 mouse button. The selected text will be inserted. |
190 | 190 |
191 The "current selection" will only remain valid until some other text is | 191 The "current selection" will only remain valid until some other text is |
192 selected. After doing the paste in the other gVim, now select some characters | 192 selected. After doing the paste in the other gvim, now select some characters |
193 in that window. You will notice that the words that were previously selected | 193 in that window. You will notice that the words that were previously selected |
194 in the other gvim window are displayed differently. This means that it no | 194 in the other gvim window are displayed differently. This means that it no |
195 longer is the current selection. | 195 longer is the current selection. |
196 | 196 |
197 You don't need to select text with the mouse, using the keyboard commands for | 197 You don't need to select text with the mouse, using the keyboard commands for |
202 | 202 |
203 Now for the other place with which text can be exchanged. We call this the | 203 Now for the other place with which text can be exchanged. We call this the |
204 "real clipboard", to avoid confusion. Often both the "current selection" and | 204 "real clipboard", to avoid confusion. Often both the "current selection" and |
205 the "real clipboard" are called clipboard, you'll have to get used to that. | 205 the "real clipboard" are called clipboard, you'll have to get used to that. |
206 To put text on the real clipboard, select a few different words in one of | 206 To put text on the real clipboard, select a few different words in one of |
207 the gVims you have running. Then use the Edit/Copy menu entry. Now the text | 207 the gvims you have running. Then use the Edit/Copy menu entry. Now the text |
208 has been copied to the real clipboard. You can't see this, unless you have | 208 has been copied to the real clipboard. You can't see this, unless you have |
209 some application that shows the clipboard contents (e.g., KDE's Klipper). | 209 some application that shows the clipboard contents (e.g., KDE's Klipper). |
210 Now select the other gVim, position the cursor somewhere and use the | 210 Now select the other gvim, position the cursor somewhere and use the |
211 Edit/Paste menu. You will see the text from the real clipboard is inserted. | 211 Edit/Paste menu. You will see the text from the real clipboard is inserted. |
212 | 212 |
213 | 213 |
214 USING BOTH | 214 USING BOTH |
215 | 215 |