$47 GRAYBYTE WORDPRESS FILE MANAGER $77

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/share/vim/vim80/doc/

HOME
Current File : /usr/share/vim/vim80/doc//usr_09.txt
*usr_09.txt*	For Vim version 8.0.  Last change: 2017 Aug 11

		     VIM USER MANUAL - by Bram Moolenaar

				Using the GUI


Vim works in an ordinary terminal.  GVim can do the same things and a few
more.  The GUI offers menus, a toolbar, scrollbars and other items.  This
chapter is about these extra things that the GUI offers.

|09.1|	Parts of the GUI
|09.2|	Using the mouse
|09.3|	The clipboard
|09.4|	Select mode

     Next chapter: |usr_10.txt|  Making big changes
 Previous chapter: |usr_08.txt|  Splitting windows
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
these commands should do it: >

	gvim file.txt
	vim -g file.txt

If this doesn't work you don't have a version of Vim with GUI support.  You
will have to install one first.
   Vim will open a window and display "file.txt" in it.  What the window looks
like depends on the version of Vim.  It should resemble the following picture
(for as far as this can be shown in ASCII!).

	+----------------------------------------------------+
	| file.txt + (~/dir) - VIM			   X |	<- window title
	+----------------------------------------------------+
	| File	Edit  Tools  Syntax  Buffers  Window  Help   |	<- menubar
	+----------------------------------------------------+
	| aaa  bbb  ccc  ddd  eee  fff	ggg  hhh  iii  jjj   |	<- toolbar
	| aaa  bbb  ccc  ddd  eee  fff	ggg  hhh  iii  jjj   |
	+----------------------------------------------------+
	| file text					 | ^ |
	| ~						 | # |
	| ~						 | # |	<- scrollbar
	| ~						 | # |
	| ~						 | # |
	| ~						 | # |
	|						 | V |
	+----------------------------------------------------+

The largest space is occupied by the file text.  This shows the file in the
same way as in a terminal.  With some different colors and another font
perhaps.


THE WINDOW TITLE

At the very top is the window title.  This is drawn by your window system.
Vim will set the title to show the name of the current file.  First comes the
name of the file.  Then some special characters and the directory of the file
in parens.  These special characters can be present:

	-	The file cannot be modified (e.g., a help file)
	+	The file contains changes
	=	The file is read-only
	=+	The file is read-only, contains changes anyway

If nothing is shown you have an ordinary, unchanged file.


THE MENUBAR

You know how menus work, right?  Vim has the usual items, plus a few more.
Browse them to get an idea of what you can use them for.  A relevant submenu
is Edit/Global Settings.  You will find these entries:

	Toggle Toolbar		make the toolbar appear/disappear
	Toggle Bottom Scrollbar	make a scrollbar appear/disappear at the bottom
	Toggle Left Scrollbar	make a scrollbar appear/disappear at the left
	Toggle Right Scrollbar	make a scrollbar appear/disappear at the right

On most systems you can tear-off the menus.  Select the top item of the menu,
the one that looks like a dashed line.  You will get a separate window with
the items of the menu.  It will hang around until you close the window.


THE TOOLBAR

This contains icons for the most often used actions.  Hopefully the icons are
self-explanatory.  There are tooltips to get an extra hint (move the mouse
pointer to the icon without clicking and don't move it for a second).

The "Edit/Global Settings/Toggle Toolbar" menu item can be used to make the
toolbar disappear.  If you never want a toolbar, use this command in your
vimrc file: >

	:set guioptions-=T

This removes the 'T' flag from the 'guioptions' option.  Other parts of the
GUI can also be enabled or disabled with this option.  See the help for it.


THE SCROLLBARS

By default there is one scrollbar on the right.  It does the obvious thing.
When you split the window, each window will get its own scrollbar.
   You can make a horizontal scrollbar appear with the menu item
Edit/Global Settings/Toggle Bottom Scrollbar.  This is useful in diff mode, or
when the 'wrap' option has been reset (more about that later).

When there are vertically split windows, only the windows on the right side
will have a scrollbar.  However, when you move the cursor to a window on the
left, it will be this one the that scrollbar controls.  This takes a bit of
time to get used to.
   When you work with vertically split windows, consider adding a scrollbar on
the left.  This can be done with a menu item, or with the 'guioptions' option:
>
	:set guioptions+=l

This adds the 'l' flag to 'guioptions'.

==============================================================================
*09.2*	Using the mouse

Standards are wonderful.  In Microsoft Windows, you can use the mouse to
select text in a standard manner.  The X Window system also has a standard
system for using the mouse.  Unfortunately, these two standards are not the
same.
   Fortunately, you can customize Vim.  You can make the behavior of the mouse
work like an X Window system mouse or a Microsoft Windows mouse.  The following
command makes the mouse behave like an X Window mouse: >

	:behave xterm

The following command makes the mouse work like a Microsoft Windows mouse: >

	:behave mswin

The default behavior of the mouse on UNIX systems is xterm.  The default
behavior on a Microsoft Windows system is selected during the installation
process.  For details about what the two behaviors are, see |:behave|.  Here
follows a summary.


XTERM MOUSE BEHAVIOR

Left mouse click		position the cursor
Left mouse drag			select text in Visual mode
Middle mouse click		paste text from the clipboard
Right mouse click		extend the selected text until the mouse
				pointer


MSWIN MOUSE BEHAVIOR

Left mouse click		position the cursor
Left mouse drag			select text in Select mode (see |09.4|)
Left mouse click, with Shift	extend the selected text until the mouse
				pointer
Middle mouse click		paste text from the clipboard
Right mouse click		display a pop-up menu


The mouse can be further tuned.  Check out these options if you want to change
the way how the mouse works:

	'mouse'			in which mode the mouse is used by Vim
	'mousemodel'		what effect a mouse click has
	'mousetime'		time between clicks for a double-click
	'mousehide'		hide the mouse while typing
	'selectmode'		whether the mouse starts Visual or Select mode

==============================================================================
*09.3*	The clipboard

In section |04.7| the basic use of the clipboard was explained.  There is one
essential thing to explain about X-windows: There are actually two places to
exchange text between programs.  MS-Windows doesn't have this.

In X-Windows there is the "current selection".  This is the text that is
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
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
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.

You don't need to select text with the mouse, using the keyboard commands for
Visual mode works just as well.


THE REAL CLIPBOARD

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
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
Edit/Paste menu.  You will see the text from the real clipboard is inserted.


USING BOTH

This use of both the "current selection" and the "real clipboard" might sound
a bit confusing.  But it is very useful.  Let's show this with an example.
Use one gvim with a text file and perform these actions:

-  Select two words in Visual mode.
-  Use the Edit/Copy menu to get these words onto the clipboard.
-  Select one other word in Visual mode.
-  Use the Edit/Paste menu item.  What will happen is that the single selected
   word is replaced with the two words from the clipboard.
-  Move the mouse pointer somewhere else and click the middle button.  You
   will see that the word you just overwrote with the clipboard is inserted
   here.

If you use the "current selection" and the "real clipboard" with care, you can
do a lot of useful editing with them.


USING THE KEYBOARD

If you don't like using the mouse, you can access the current selection and
the real clipboard with two registers.  The "* register is for the current
selection.
   To make text become the current selection, use Visual mode.  For example,
to select a whole line just press "V".
   To insert the current selection before the cursor: >

	"*P

Notice the uppercase "P".  The lowercase "p" puts the text after the cursor.

The "+ register is used for the real clipboard.  For example, to copy the text
from the cursor position until the end of the line to the clipboard: >

	"+y$

Remember, "y" is yank, which is Vim's copy command.
   To insert the contents of the real clipboard before the cursor: >

	"+P

It's the same as for the current selection, but uses the plus (+) register
instead of the star (*) register.

==============================================================================
*09.4*	Select mode

And now something that is used more often on MS-Windows than on X-Windows.
But both can do it.  You already know about Visual mode.  Select mode is like
Visual mode, because it is also used to select text.  But there is an obvious
difference: When typing text, the selected text is deleted and the typed text
replaces it.

To start working with Select mode, you must first enable it (for MS-Windows
it is probably already enabled, but you can do this anyway): >

	:set selectmode+=mouse

Now use the mouse to select some text.  It is highlighted like in Visual mode.
Now press a letter.  The selected text is deleted, and the single letter
replaces it.  You are in Insert mode now, thus you can continue typing.

Since typing normal text causes the selected text to be deleted, you can not
use the normal movement commands "hjkl", "w", etc.  Instead, use the shifted
function keys.  <S-Left> (shifted cursor left key) moves the cursor left.  The
selected text is changed like in Visual mode.  The other shifted cursor keys
do what you expect.  <S-End> and <S-Home> also work.

You can tune the way Select mode works with the 'selectmode' option.

==============================================================================

Next chapter: |usr_10.txt|  Making big changes

Copyright: see |manual-copyright|  vim:tw=78:ts=8:ft=help:norl:

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Dec 2025 9.30 PM
root / root
0755
arabic.txt
11.656 KB
12 Oct 2025 7.23 AM
root / root
0644
autocmd.txt
63.869 KB
12 Oct 2025 7.23 AM
root / root
0644
change.txt
73.122 KB
12 Oct 2025 7.23 AM
root / root
0644
channel.txt
30.097 KB
12 Oct 2025 7.23 AM
root / root
0644
cmdline.txt
46.175 KB
12 Oct 2025 7.23 AM
root / root
0644
debug.txt
7.014 KB
12 Oct 2025 7.23 AM
root / root
0644
debugger.txt
5.609 KB
12 Oct 2025 7.23 AM
root / root
0644
develop.txt
21.82 KB
12 Oct 2025 7.23 AM
root / root
0644
diff.txt
16.138 KB
12 Oct 2025 7.23 AM
root / root
0644
digraph.txt
60.667 KB
12 Oct 2025 7.23 AM
root / root
0644
editing.txt
71.461 KB
12 Oct 2025 7.23 AM
root / root
0644
eval.txt
434.045 KB
12 Oct 2025 7.23 AM
root / root
0644
farsi.txt
9.476 KB
12 Oct 2025 7.23 AM
root / root
0644
filetype.txt
25.325 KB
12 Oct 2025 7.23 AM
root / root
0644
fold.txt
23.139 KB
12 Oct 2025 7.23 AM
root / root
0644
ft_ada.txt
17.819 KB
12 Oct 2025 7.23 AM
root / root
0644
ft_rust.txt
9.303 KB
12 Oct 2025 7.23 AM
root / root
0644
ft_sql.txt
29.975 KB
12 Oct 2025 7.23 AM
root / root
0644
gui.txt
44.523 KB
12 Oct 2025 7.23 AM
root / root
0644
gui_w32.txt
18.473 KB
12 Oct 2025 7.23 AM
root / root
0644
gui_x11.txt
28.789 KB
12 Oct 2025 7.23 AM
root / root
0644
hangulin.txt
3.214 KB
12 Oct 2025 7.23 AM
root / root
0644
hebrew.txt
5.58 KB
12 Oct 2025 7.23 AM
root / root
0644
help.txt
8.377 KB
12 Oct 2025 7.23 AM
root / root
0644
helphelp.txt
14.002 KB
12 Oct 2025 7.23 AM
root / root
0644
howto.txt
2.843 KB
12 Oct 2025 7.23 AM
root / root
0644
if_cscop.txt
18.907 KB
12 Oct 2025 7.23 AM
root / root
0644
if_lua.txt
14.299 KB
12 Oct 2025 7.23 AM
root / root
0644
if_mzsch.txt
11.546 KB
12 Oct 2025 7.23 AM
root / root
0644
if_ole.txt
7.231 KB
12 Oct 2025 7.23 AM
root / root
0644
if_perl.txt
10.888 KB
12 Oct 2025 7.23 AM
root / root
0644
if_pyth.txt
37.055 KB
12 Oct 2025 7.23 AM
root / root
0644
if_ruby.txt
7.826 KB
12 Oct 2025 7.23 AM
root / root
0644
if_sniff.txt
0.26 KB
12 Oct 2025 7.23 AM
root / root
0644
if_tcl.txt
22.486 KB
12 Oct 2025 7.23 AM
root / root
0644
indent.txt
38.503 KB
12 Oct 2025 7.23 AM
root / root
0644
index.txt
74.651 KB
12 Oct 2025 7.23 AM
root / root
0644
insert.txt
81.207 KB
12 Oct 2025 7.23 AM
root / root
0644
intro.txt
38.307 KB
12 Oct 2025 7.23 AM
root / root
0644
map.txt
63.152 KB
12 Oct 2025 7.23 AM
root / root
0644
mbyte.txt
57.916 KB
12 Oct 2025 7.23 AM
root / root
0644
message.txt
30.498 KB
12 Oct 2025 7.23 AM
root / root
0644
mlang.txt
7.666 KB
12 Oct 2025 7.23 AM
root / root
0644
motion.txt
50.393 KB
12 Oct 2025 7.23 AM
root / root
0644
netbeans.txt
36.131 KB
12 Oct 2025 7.23 AM
root / root
0644
options.txt
378.018 KB
12 Oct 2025 7.23 AM
root / root
0644
os_390.txt
4.642 KB
12 Oct 2025 7.23 AM
root / root
0644
os_amiga.txt
5.333 KB
12 Oct 2025 7.23 AM
root / root
0644
os_beos.txt
10.726 KB
12 Oct 2025 7.23 AM
root / root
0644
os_dos.txt
11.739 KB
12 Oct 2025 7.23 AM
root / root
0644
os_mac.txt
6.69 KB
12 Oct 2025 7.23 AM
root / root
0644
os_mint.txt
1.369 KB
12 Oct 2025 7.23 AM
root / root
0644
os_msdos.txt
0.506 KB
12 Oct 2025 7.23 AM
root / root
0644
os_os2.txt
0.287 KB
12 Oct 2025 7.23 AM
root / root
0644
os_qnx.txt
3.976 KB
12 Oct 2025 7.23 AM
root / root
0644
os_risc.txt
0.315 KB
12 Oct 2025 7.23 AM
root / root
0644
os_unix.txt
2.534 KB
12 Oct 2025 7.23 AM
root / root
0644
os_vms.txt
31.348 KB
12 Oct 2025 7.23 AM
root / root
0644
os_win32.txt
13.035 KB
12 Oct 2025 7.23 AM
root / root
0644
pattern.txt
57.931 KB
12 Oct 2025 7.23 AM
root / root
0644
pi_getscript.txt
20.584 KB
12 Oct 2025 7.23 AM
root / root
0644
pi_gzip.txt
1.29 KB
12 Oct 2025 7.23 AM
root / root
0644
pi_logipat.txt
4.088 KB
12 Oct 2025 7.23 AM
root / root
0644
pi_netrw.txt
171.436 KB
12 Oct 2025 7.23 AM
root / root
0644
pi_paren.txt
2.216 KB
12 Oct 2025 7.23 AM
root / root
0644
pi_spec.txt
4.025 KB
12 Oct 2025 7.23 AM
root / root
0644
pi_tar.txt
6.077 KB
12 Oct 2025 7.23 AM
root / root
0644
pi_vimball.txt
11.575 KB
12 Oct 2025 7.23 AM
root / root
0644
pi_zip.txt
6.87 KB
12 Oct 2025 7.23 AM
root / root
0644
print.txt
30.428 KB
12 Oct 2025 7.23 AM
root / root
0644
quickfix.txt
67.403 KB
12 Oct 2025 7.23 AM
root / root
0644
quickref.txt
69.586 KB
12 Oct 2025 7.23 AM
root / root
0644
quotes.txt
12.444 KB
12 Oct 2025 7.23 AM
root / root
0644
recover.txt
10.443 KB
12 Oct 2025 7.23 AM
root / root
0644
remote.txt
8.223 KB
12 Oct 2025 7.23 AM
root / root
0644
repeat.txt
38.646 KB
12 Oct 2025 7.23 AM
root / root
0644
rileft.txt
4.859 KB
12 Oct 2025 7.23 AM
root / root
0644
russian.txt
3.018 KB
12 Oct 2025 7.23 AM
root / root
0644
scroll.txt
13.741 KB
12 Oct 2025 7.23 AM
root / root
0644
sign.txt
6.729 KB
12 Oct 2025 7.23 AM
root / root
0644
spell.txt
61.31 KB
12 Oct 2025 7.23 AM
root / root
0644
sponsor.txt
7.029 KB
12 Oct 2025 7.23 AM
root / root
0644
starting.txt
71.896 KB
12 Oct 2025 7.23 AM
root / root
0644
syntax.txt
212.374 KB
12 Oct 2025 7.23 AM
root / root
0644
tabpage.txt
16.328 KB
12 Oct 2025 7.23 AM
root / root
0644
tags
320.952 KB
12 Oct 2025 7.23 AM
root / root
0644
tagsrch.txt
35.777 KB
12 Oct 2025 7.23 AM
root / root
0644
term.txt
44.352 KB
12 Oct 2025 7.23 AM
root / root
0644
terminal.txt
32.78 KB
12 Oct 2025 7.23 AM
root / root
0644
tips.txt
20.074 KB
12 Oct 2025 7.23 AM
root / root
0644
todo.txt
289.324 KB
12 Oct 2025 7.23 AM
root / root
0644
uganda.txt
13.695 KB
12 Oct 2025 7.23 AM
root / root
0644
undo.txt
16.151 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_01.txt
6.924 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_02.txt
23.769 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_03.txt
23.052 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_04.txt
18.635 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_05.txt
23.266 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_06.txt
9.362 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_07.txt
15.609 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_08.txt
18.92 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_09.txt
11.182 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_10.txt
28.496 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_11.txt
12.315 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_12.txt
13.109 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_20.txt
13.382 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_21.txt
17.942 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_22.txt
13.962 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_23.txt
12.293 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_24.txt
20.38 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_25.txt
18.666 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_26.txt
8.061 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_27.txt
17.308 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_28.txt
15.64 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_29.txt
19.645 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_30.txt
22.125 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_31.txt
10.15 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_32.txt
5.247 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_40.txt
22.641 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_41.txt
87.208 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_42.txt
13.475 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_43.txt
7.23 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_44.txt
28.526 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_45.txt
17.492 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_90.txt
17.247 KB
12 Oct 2025 7.23 AM
root / root
0644
usr_toc.txt
9.002 KB
12 Oct 2025 7.23 AM
root / root
0644
various.txt
28.176 KB
12 Oct 2025 7.23 AM
root / root
0644
version4.txt
13.58 KB
12 Oct 2025 7.23 AM
root / root
0644
version5.txt
301.312 KB
12 Oct 2025 7.23 AM
root / root
0644
version6.txt
563.527 KB
12 Oct 2025 7.23 AM
root / root
0644
version7.txt
658.951 KB
12 Oct 2025 7.23 AM
root / root
0644
version8.txt
668.215 KB
12 Oct 2025 7.23 AM
root / root
0644
vi_diff.txt
41.809 KB
12 Oct 2025 7.23 AM
root / root
0644
visual.txt
21.331 KB
12 Oct 2025 7.23 AM
root / root
0644
windows.txt
51.787 KB
12 Oct 2025 7.23 AM
root / root
0644
workshop.txt
4.522 KB
12 Oct 2025 7.23 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF