annotate runtime/doc/howto.txt @ 28403:2655935b5ccc v8.2.4726

patch 8.2.4726: cannot use expand() to get the script name Commit: https://github.com/vim/vim/commit/6013d0045dec7ca7c0068fbe186c42d754a7368b Author: LemonBoy <thatlemon@gmail.com> Date: Sat Apr 9 21:42:10 2022 +0100 patch 8.2.4726: cannot use expand() to get the script name Problem: Cannot use expand() to get the script name. Solution: Support expand('<script>'). (closes https://github.com/vim/vim/issues/10121)
author Bram Moolenaar <Bram@vim.org>
date Sat, 09 Apr 2022 22:45:03 +0200
parents af69c9335223
children f8116058ca76
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18879
af69c9335223 Vim 8.2 release
Bram Moolenaar <Bram@vim.org>
parents: 14421
diff changeset
1 *howto.txt* For Vim version 8.2. Last change: 2006 Apr 02
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL by Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 How to ... *howdoi* *how-do-i* *howto* *how-to*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 |tutor| get started
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 |:quit| exit? I'm trapped, help me!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 |initialization| initialize Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 |vimrc-intro| write a Vim script file (vimrc)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 |suspend| suspend Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 |usr_11.txt| recover after a crash
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 |07.4| keep a backup of my file when writing over it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 |usr_07.txt| edit files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 |23.4| edit binary files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 |usr_24.txt| insert text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 |deleting| delete text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 |usr_04.txt| change text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 |04.5| copy and move text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 |usr_25.txt| format text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 |30.6| format comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 |30.2| indent C programs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 |25.3| automatically set indent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 |usr_26.txt| repeat commands
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 |02.5| undo and redo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 |usr_03.txt| move around
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 |word-motions| word motions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 |left-right-motions| left-right motions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 |up-down-motions| up-down motions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 |object-motions| text-object motions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 |various-motions| various motions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 |object-select| text-object selection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 |'whichwrap'| move over line breaks
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 |'virtualedit'| move to where there is no text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 |usr_27.txt| specify pattern for searches
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 |tags-and-searches| do tags and special searches
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 |29.4| search in include'd files used to find
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 variables, functions, or macros
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 |K| look up manual for the keyword under cursor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 |03.7| scroll
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 |'sidescroll'| scroll horizontally/sideways
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 |'scrolloff'| set visible context lines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 |mode-switching| change modes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 |04.4| use Visual mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 |'insertmode'| start Vim in Insert mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 |40.1| map keys
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 |24.7| create abbreviations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 |ins-expandtab| expand a tab to spaces in Insert mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 |i_CTRL-R| insert contents of a register in Insert mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 |24.3| complete words in Insert mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 |25.1| break a line before it gets too long
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 |20.1| do command-line editing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 |20.3| do command-line completion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 |'cmdheight'| increase the height of command-line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 |10.3| specify command-line ranges
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 |40.3| specify commands to be executed automatically
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 before/after reading/writing entering/leaving a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 buffer/window
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 |'autowrite'| write automatically
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 |30.1| speedup edit-compile-edit cycle or compile and fix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 errors within Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 |options| set options
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 |auto-setting| set options automatically
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 |term-dependent-settings| set options depending on terminal name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 |save-settings| save settings
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 810
diff changeset
78 |:quote| comment my .vim files
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 |'helpheight'| change the default help height
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 |'highlight'| set various highlighting modes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 |'title'| set the window title
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 |'icon'| set window icon title
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 |'report'| avoid seeing the change messages on every line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 |'shortmess'| avoid |hit-enter| prompts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 |mouse-using| use mouse with Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 |usr_08.txt| manage multiple windows and buffers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 |gui.txt| use the gui
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 |You can't! (yet)| do dishes using Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 |usr_06.txt| switch on syntax highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 |2html.vim| convert a colored file to HTML
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 |less| use Vim like less or more with syntax highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
14421
2f7e67dd088c Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13963
diff changeset
96 vim:tw=78:ts=8:noet:ft=help:norl: