Linux ip-172-26-5-244 6.1.0-28-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64
Apache
: 172.26.5.244 | : 216.73.216.21
Cant Read [ /etc/named.conf ]
8.3.14
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
vim /
vim90 /
doc /
[ HOME SHELL ]
Name
Size
Permission
Action
README.Debian
324
B
-rw-r--r--
arabic.txt
11.92
KB
-rw-r--r--
autocmd.txt
75.99
KB
-rw-r--r--
builtin.txt
408.41
KB
-rw-r--r--
change.txt
78.24
KB
-rw-r--r--
channel.txt
57.71
KB
-rw-r--r--
cmdline.txt
50.69
KB
-rw-r--r--
debug.txt
6.73
KB
-rw-r--r--
debugger.txt
5.32
KB
-rw-r--r--
develop.txt
22.58
KB
-rw-r--r--
diff.txt
17.85
KB
-rw-r--r--
digraph.txt
60.65
KB
-rw-r--r--
editing.txt
75.07
KB
-rw-r--r--
eval.txt
165.99
KB
-rw-r--r--
farsi.txt
523
B
-rw-r--r--
filetype.txt
28.59
KB
-rw-r--r--
fold.txt
24.11
KB
-rw-r--r--
ft_ada.txt
17.79
KB
-rw-r--r--
ft_context.txt
5.04
KB
-rw-r--r--
ft_mp.txt
4.6
KB
-rw-r--r--
ft_ps1.txt
2.14
KB
-rw-r--r--
ft_raku.txt
4.12
KB
-rw-r--r--
ft_rust.txt
8.04
KB
-rw-r--r--
ft_sql.txt
29.97
KB
-rw-r--r--
gui.txt
52.26
KB
-rw-r--r--
gui_w32.txt
18.67
KB
-rw-r--r--
gui_x11.txt
28.63
KB
-rw-r--r--
hangulin.txt
598
B
-rw-r--r--
hebrew.txt
5.53
KB
-rw-r--r--
help.txt
9.27
KB
-rw-r--r--
help.txt.vim-tiny
1.32
KB
-rw-r--r--
helphelp.txt
15.56
KB
-rw-r--r--
howto.txt
2.85
KB
-rw-r--r--
if_cscop.txt
18.87
KB
-rw-r--r--
if_lua.txt
18.11
KB
-rw-r--r--
if_mzsch.txt
11.66
KB
-rw-r--r--
if_ole.txt
6.95
KB
-rw-r--r--
if_perl.txt
11.07
KB
-rw-r--r--
if_pyth.txt
38.52
KB
-rw-r--r--
if_ruby.txt
8.32
KB
-rw-r--r--
if_sniff.txt
271
B
-rw-r--r--
if_tcl.txt
22.41
KB
-rw-r--r--
indent.txt
42.76
KB
-rw-r--r--
index.txt
79.82
KB
-rw-r--r--
insert.txt
85.88
KB
-rw-r--r--
intro.txt
38.32
KB
-rw-r--r--
map.txt
78.97
KB
-rw-r--r--
mbyte.txt
57.27
KB
-rw-r--r--
message.txt
31.15
KB
-rw-r--r--
mlang.txt
7.97
KB
-rw-r--r--
motion.txt
50.87
KB
-rw-r--r--
netbeans.txt
37.07
KB
-rw-r--r--
options.txt
404.12
KB
-rw-r--r--
os_390.txt
4.63
KB
-rw-r--r--
os_amiga.txt
5.34
KB
-rw-r--r--
os_beos.txt
293
B
-rw-r--r--
os_dos.txt
15.13
KB
-rw-r--r--
os_haiku.txt
8.34
KB
-rw-r--r--
os_mac.txt
6.7
KB
-rw-r--r--
os_mint.txt
391
B
-rw-r--r--
os_msdos.txt
523
B
-rw-r--r--
os_os2.txt
299
B
-rw-r--r--
os_qnx.txt
3.98
KB
-rw-r--r--
os_risc.txt
328
B
-rw-r--r--
os_unix.txt
2.55
KB
-rw-r--r--
os_vms.txt
32
KB
-rw-r--r--
os_win32.txt
14.39
KB
-rw-r--r--
pattern.txt
62.03
KB
-rw-r--r--
pi_getscript.txt
20.58
KB
-rw-r--r--
pi_gzip.txt
1.26
KB
-rw-r--r--
pi_logipat.txt
4.1
KB
-rw-r--r--
pi_netrw.txt
177.65
KB
-rw-r--r--
pi_paren.txt
2.22
KB
-rw-r--r--
pi_spec.txt
4.03
KB
-rw-r--r--
pi_tar.txt
7.02
KB
-rw-r--r--
pi_vimball.txt
11.58
KB
-rw-r--r--
pi_zip.txt
7.29
KB
-rw-r--r--
popup.txt
39.44
KB
-rw-r--r--
print.txt
30.71
KB
-rw-r--r--
quickfix.txt
83.43
KB
-rw-r--r--
quickref.txt
71.29
KB
-rw-r--r--
quotes.txt
12.45
KB
-rw-r--r--
recover.txt
10.47
KB
-rw-r--r--
remote.txt
8.42
KB
-rw-r--r--
repeat.txt
45.3
KB
-rw-r--r--
rileft.txt
4.94
KB
-rw-r--r--
russian.txt
2.95
KB
-rw-r--r--
scroll.txt
13.96
KB
-rw-r--r--
sign.txt
26.23
KB
-rw-r--r--
spell.txt
62.6
KB
-rw-r--r--
sponsor.txt
6.64
KB
-rw-r--r--
starting.txt
72.73
KB
-rw-r--r--
syntax.txt
230.84
KB
-rw-r--r--
tabpage.txt
16.84
KB
-rw-r--r--
tags
373.94
KB
-rw-r--r--
tags.vim-tiny
30
B
-rw-r--r--
tagsrch.txt
39.53
KB
-rw-r--r--
term.txt
53.68
KB
-rw-r--r--
terminal.txt
59
KB
-rw-r--r--
testing.txt
21.7
KB
-rw-r--r--
textprop.txt
19.72
KB
-rw-r--r--
tips.txt
20.6
KB
-rw-r--r--
todo.txt
304.88
KB
-rw-r--r--
uganda.txt
12.73
KB
-rw-r--r--
undo.txt
16.35
KB
-rw-r--r--
userfunc.txt
19.83
KB
-rw-r--r--
usr_01.txt
6.92
KB
-rw-r--r--
usr_02.txt
23.66
KB
-rw-r--r--
usr_03.txt
23.31
KB
-rw-r--r--
usr_04.txt
18.68
KB
-rw-r--r--
usr_05.txt
26.39
KB
-rw-r--r--
usr_06.txt
10.39
KB
-rw-r--r--
usr_07.txt
15.62
KB
-rw-r--r--
usr_08.txt
18.92
KB
-rw-r--r--
usr_09.txt
11.23
KB
-rw-r--r--
usr_10.txt
28.52
KB
-rw-r--r--
usr_11.txt
12.72
KB
-rw-r--r--
usr_12.txt
13.12
KB
-rw-r--r--
usr_20.txt
13.41
KB
-rw-r--r--
usr_21.txt
18.02
KB
-rw-r--r--
usr_22.txt
14.55
KB
-rw-r--r--
usr_23.txt
12.45
KB
-rw-r--r--
usr_24.txt
20.34
KB
-rw-r--r--
usr_25.txt
18.73
KB
-rw-r--r--
usr_26.txt
8.07
KB
-rw-r--r--
usr_27.txt
17.29
KB
-rw-r--r--
usr_28.txt
15.64
KB
-rw-r--r--
usr_29.txt
19.78
KB
-rw-r--r--
usr_30.txt
22.13
KB
-rw-r--r--
usr_31.txt
10.16
KB
-rw-r--r--
usr_32.txt
5.25
KB
-rw-r--r--
usr_40.txt
23
KB
-rw-r--r--
usr_41.txt
63.29
KB
-rw-r--r--
usr_42.txt
13.53
KB
-rw-r--r--
usr_43.txt
7.24
KB
-rw-r--r--
usr_44.txt
28.27
KB
-rw-r--r--
usr_45.txt
17.27
KB
-rw-r--r--
usr_50.txt
4.45
KB
-rw-r--r--
usr_51.txt
24.91
KB
-rw-r--r--
usr_52.txt
13.18
KB
-rw-r--r--
usr_90.txt
16.44
KB
-rw-r--r--
usr_toc.txt
9.65
KB
-rw-r--r--
various.txt
31.55
KB
-rw-r--r--
version4.txt
13.58
KB
-rw-r--r--
version5.txt
301.3
KB
-rw-r--r--
version6.txt
563.42
KB
-rw-r--r--
version7.txt
658.89
KB
-rw-r--r--
version8.txt
1.53
MB
-rw-r--r--
version9.txt
1.21
MB
-rw-r--r--
vi_diff.txt
56.06
KB
-rw-r--r--
vim9.txt
82.5
KB
-rw-r--r--
vim9class.txt
30.86
KB
-rw-r--r--
visual.txt
22.02
KB
-rw-r--r--
windows.txt
57.33
KB
-rw-r--r--
workshop.txt
371
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : usr_50.txt
*usr_50.txt* For Vim version 9.0. Last change: 2022 Jun 20 VIM USER MANUAL - by Bram Moolenaar Advanced Vim script writing |50.1| Exceptions |50.2| Function with variable number of arguments |50.3| Restoring the view Next chapter: |usr_51.txt| Create a plugin Previous chapter: |usr_45.txt| Select your language (local) Table of contents: |usr_toc.txt| ============================================================================== *50.1* Exceptions Let's start with an example: > try read ~/templates/pascal.tmpl catch /E484:/ echo "Sorry, the Pascal template file cannot be found." endtry The `read` command will fail if the file does not exist. Instead of generating an error message, this code catches the error and gives the user a message with more information. For the commands in between `try` and `endtry` errors are turned into exceptions. An exception is a string. In the case of an error the string contains the error message. And every error message has a number. In this case, the error we catch contains "E484:". This number is guaranteed to stay the same (the text may change, e.g., it may be translated). Besides being able to give a nice error message, Vim will also continue executing commands after the `:endtry`. Otherwise, once an uncaught error is encountered, execution of the script/function/mapping will be aborted. When the `read` command causes another error, the pattern "E484:" will not match in it. Thus this exception will not be caught and result in the usual error message and execution is aborted. You might be tempted to do this: > try read ~/templates/pascal.tmpl catch echo "Sorry, the Pascal template file cannot be found." endtry This means all errors are caught. But then you will not see an error that would indicate a completely different problem, such as "E21: Cannot make changes, 'modifiable' is off". Think twice before you catch any error! Another useful mechanism is the `finally` command: > var tmp = tempname() try exe ":.,$write " .. tmp exe "!filter " .. tmp :.,$delete exe ":$read " .. tmp finally delete(tmp) endtry This filters the lines from the cursor until the end of the file through the "filter" command, which takes a file name argument. No matter if the filtering works, if something goes wrong in between `try` and `finally` or the user cancels the filtering by pressing CTRL-C, the `delete(tmp)` call is always executed. This makes sure you don't leave the temporary file behind. The `finally` does not catch the exception, the error will still abort further execution. More information about exception handling can be found in the reference manual: |exception-handling|. ============================================================================== *50.2* Function with variable number of arguments Vim enables you to define functions that have a variable number of arguments. The following command, for instance, defines a function that must have 1 argument (start) and can have up to 20 additional arguments: > def Show(start: string, ...items: list<string>) The variable "items" will be a list in the function containing the extra arguments. You can use it like any list, for example: > def Show(start: string, ...items: list<string>) echohl Title echo "start is " .. start echohl None for index in range(len(items)) echon $" Arg {index} is {items[index]}" endfor echo enddef You can call it like this: > Show('Title', 'one', 'two', 'three') < start is Title Arg 0 is one Arg 1 is two Arg 2 is three ~ This uses the `echohl` command to specify the highlighting used for the following `echo` command. `echohl None` stops it again. The `echon` command works like `echo`, but doesn't output a line break. If you call it with one argument the "items" list will be empty. `range(len(items))` returns a list with the indexes, what `for` loops over, we'll explain that further down. ============================================================================== *50.3* Restoring the view Sometimes you want to jump around, make a change and then go back to the same position and view. For example to change something in the file header. This can be done with two functions: > var view = winsaveview() # Move around, make changes winrestview(view) ============================================================================== Next chapter: |usr_51.txt| Create a plugin Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
Close