h-east | 0bdc5d8 | 2024-05-27 17:12:57 +0200 | [diff] [blame] | 1 | *help.txt* For Vim version 9.1. Last change: 2024 May 27 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2 | |
| 3 | VIM - main help file |
| 4 | k |
| 5 | Move around: Use the cursor keys, or "h" to go left, h l |
| 6 | "j" to go down, "k" to go up, "l" to go right. j |
| 7 | Close this window: Use ":q<Enter>". |
| 8 | Get out of Vim: Use ":qa!<Enter>" (careful, all changes are lost!). |
| 9 | |
Bram Moolenaar | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 10 | Jump to a subject: Position the cursor on a tag (e.g. |bars|) and hit CTRL-]. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11 | With the mouse: ":set mouse=a" to enable the mouse (in xterm or GUI). |
Bram Moolenaar | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 12 | Double-click the left mouse button on a tag, e.g. |bars|. |
Bram Moolenaar | 4c05fa0 | 2019-01-01 15:32:17 +0100 | [diff] [blame] | 13 | Jump back: Type CTRL-O. Repeat to go further back. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14 | |
| 15 | Get specific help: It is possible to go directly to whatever you want help |
Bram Moolenaar | 1423b9d | 2006-05-07 15:16:06 +0000 | [diff] [blame] | 16 | on, by giving an argument to the |:help| command. |
Bram Moolenaar | 345efa0 | 2016-01-15 20:57:49 +0100 | [diff] [blame] | 17 | Prepend something to specify the context: *help-context* |
| 18 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 19 | WHAT PREPEND EXAMPLE ~ |
Bram Moolenaar | 345efa0 | 2016-01-15 20:57:49 +0100 | [diff] [blame] | 20 | Normal mode command :help x |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 21 | Visual mode command v_ :help v_u |
| 22 | Insert mode command i_ :help i_<Esc> |
| 23 | Command-line command : :help :quit |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 24 | Command-line editing c_ :help c_<Del> |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 25 | Vim command argument - :help -r |
| 26 | Option ' :help 'textwidth' |
Bram Moolenaar | 5a5f459 | 2015-04-13 12:43:06 +0200 | [diff] [blame] | 27 | Regular expression / :help /[ |
Bram Moolenaar | 345efa0 | 2016-01-15 20:57:49 +0100 | [diff] [blame] | 28 | See |help-summary| for more contexts and an explanation. |
Bram Moolenaar | 48c3f4e | 2022-08-08 15:42:38 +0100 | [diff] [blame] | 29 | See |notation| for an explanation of the help syntax. |
Bram Moolenaar | acb4f22 | 2016-01-10 15:59:26 +0100 | [diff] [blame] | 30 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 31 | Search for help: Type ":help word", then hit CTRL-D to see matching |
| 32 | help entries for "word". |
Bram Moolenaar | 9160441 | 2010-06-03 20:25:18 +0200 | [diff] [blame] | 33 | Or use ":helpgrep word". |:helpgrep| |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 34 | |
Bram Moolenaar | d1caa94 | 2020-04-10 22:10:56 +0200 | [diff] [blame] | 35 | Getting started: Do the Vim tutor, a 30-minute interactive course for the |
Bram Moolenaar | 4c05fa0 | 2019-01-01 15:32:17 +0100 | [diff] [blame] | 36 | basic commands, see |vimtutor|. |
| 37 | Read the user manual from start to end: |usr_01.txt| |
| 38 | |
Bram Moolenaar | 6aa8cea | 2017-06-05 14:44:35 +0200 | [diff] [blame] | 39 | Vim stands for Vi IMproved. Most of Vim was made by Bram Moolenaar, but only |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 40 | through the help of many others. See |credits|. |
| 41 | ------------------------------------------------------------------------------ |
| 42 | *doc-file-list* *Q_ct* |
| 43 | BASIC: |
| 44 | |quickref| Overview of the most common commands you will use |
Bram Moolenaar | d1caa94 | 2020-04-10 22:10:56 +0200 | [diff] [blame] | 45 | |tutor| 30-minute interactive course for beginners |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 46 | |copying| About copyrights |
| 47 | |iccf| Helping poor children in Uganda |
| 48 | |sponsor| Sponsor Vim development, become a registered Vim user |
| 49 | |www| Vim on the World Wide Web |
| 50 | |bugs| Where to send bug reports |
| 51 | |
| 52 | USER MANUAL: These files explain how to accomplish an editing task. |
| 53 | |
| 54 | |usr_toc.txt| Table Of Contents |
| 55 | |
| 56 | Getting Started ~ |
| 57 | |usr_01.txt| About the manuals |
| 58 | |usr_02.txt| The first steps in Vim |
| 59 | |usr_03.txt| Moving around |
| 60 | |usr_04.txt| Making small changes |
| 61 | |usr_05.txt| Set your settings |
| 62 | |usr_06.txt| Using syntax highlighting |
| 63 | |usr_07.txt| Editing more than one file |
| 64 | |usr_08.txt| Splitting windows |
| 65 | |usr_09.txt| Using the GUI |
| 66 | |usr_10.txt| Making big changes |
| 67 | |usr_11.txt| Recovering from a crash |
| 68 | |usr_12.txt| Clever tricks |
| 69 | |
| 70 | Editing Effectively ~ |
| 71 | |usr_20.txt| Typing command-line commands quickly |
| 72 | |usr_21.txt| Go away and come back |
| 73 | |usr_22.txt| Finding the file to edit |
| 74 | |usr_23.txt| Editing other files |
| 75 | |usr_24.txt| Inserting quickly |
| 76 | |usr_25.txt| Editing formatted text |
| 77 | |usr_26.txt| Repeating |
| 78 | |usr_27.txt| Search commands and patterns |
| 79 | |usr_28.txt| Folding |
| 80 | |usr_29.txt| Moving through programs |
| 81 | |usr_30.txt| Editing programs |
| 82 | |usr_31.txt| Exploiting the GUI |
Bram Moolenaar | c01140a | 2006-03-24 22:21:52 +0000 | [diff] [blame] | 83 | |usr_32.txt| The undo tree |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 84 | |
| 85 | Tuning Vim ~ |
| 86 | |usr_40.txt| Make new commands |
| 87 | |usr_41.txt| Write a Vim script |
| 88 | |usr_42.txt| Add new menus |
| 89 | |usr_43.txt| Using filetypes |
| 90 | |usr_44.txt| Your own syntax highlighted |
| 91 | |usr_45.txt| Select your language |
Bram Moolenaar | 30ab04e | 2022-05-14 13:33:50 +0100 | [diff] [blame] | 92 | |
| 93 | Writing Vim scripts ~ |
| 94 | |usr_50.txt| Advanced Vim script writing |
| 95 | |usr_51.txt| Create a plugin |
| 96 | |usr_52.txt| Write plugins using Vim9 script |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 97 | |
| 98 | Making Vim Run ~ |
| 99 | |usr_90.txt| Installing Vim |
| 100 | |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 101 | REFERENCE MANUAL: These files explain every detail of Vim. *reference_toc* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 102 | |
| 103 | General subjects ~ |
| 104 | |intro.txt| general introduction to Vim; notation used in help files |
| 105 | |help.txt| overview and quick reference (this file) |
Bram Moolenaar | 9160441 | 2010-06-03 20:25:18 +0200 | [diff] [blame] | 106 | |helphelp.txt| about using the help files |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 107 | |index.txt| alphabetical index of all commands |
| 108 | |help-tags| all the tags you can jump to (index of tags) |
| 109 | |howto.txt| how to do the most common editing tasks |
| 110 | |tips.txt| various tips on using Vim |
| 111 | |message.txt| (error) messages and explanations |
| 112 | |quotes.txt| remarks from users of Vim |
| 113 | |todo.txt| known problems and desired extensions |
| 114 | |develop.txt| development of Vim |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 115 | |debug.txt| debugging Vim itself |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 116 | |uganda.txt| Vim distribution conditions and what to do with your money |
| 117 | |
| 118 | Basic editing ~ |
| 119 | |starting.txt| starting Vim, Vim command arguments, initialisation |
| 120 | |editing.txt| editing and writing files |
| 121 | |motion.txt| commands for moving around |
| 122 | |scroll.txt| scrolling the text in the window |
| 123 | |insert.txt| Insert and Replace mode |
| 124 | |change.txt| deleting and replacing text |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 125 | |undo.txt| Undo and Redo |
| 126 | |repeat.txt| repeating commands, Vim scripts and debugging |
| 127 | |visual.txt| using the Visual mode (selecting a text area) |
| 128 | |various.txt| various remaining commands |
| 129 | |recover.txt| recovering from a crash |
| 130 | |
| 131 | Advanced editing ~ |
| 132 | |cmdline.txt| Command-line editing |
| 133 | |options.txt| description of all options |
| 134 | |pattern.txt| regexp patterns and search commands |
| 135 | |map.txt| key mapping and abbreviations |
| 136 | |tagsrch.txt| tags and special searches |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 137 | |windows.txt| commands for using multiple windows and buffers |
Bram Moolenaar | 7e8fd63 | 2006-02-18 22:14:51 +0000 | [diff] [blame] | 138 | |tabpage.txt| commands for using multiple tab pages |
Bram Moolenaar | 217ad92 | 2005-03-20 22:37:15 +0000 | [diff] [blame] | 139 | |spell.txt| spell checking |
Bram Moolenaar | 2346a63 | 2021-06-13 19:02:49 +0200 | [diff] [blame] | 140 | |diff.txt| working with two to eight versions of the same file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 141 | |autocmd.txt| automatically executing commands on an event |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 142 | |eval.txt| expression evaluation, conditional commands |
Bram Moolenaar | 1cae5a0 | 2021-12-27 21:28:34 +0000 | [diff] [blame] | 143 | |builtin.txt| builtin functions |
Bram Moolenaar | 0daafaa | 2022-09-04 17:45:43 +0100 | [diff] [blame] | 144 | |userfunc.txt| defining user functions |
Bram Moolenaar | d079690 | 2016-09-16 20:02:31 +0200 | [diff] [blame] | 145 | |channel.txt| Jobs, Channels, inter-process communication |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 146 | |fold.txt| hide (fold) ranges of lines |
| 147 | |
| 148 | Special issues ~ |
Bram Moolenaar | ed997ad | 2019-07-21 16:42:00 +0200 | [diff] [blame] | 149 | |testing.txt| testing Vim and Vim scripts |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 150 | |print.txt| printing |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 151 | |remote.txt| using Vim as a server or client |
| 152 | |term.txt| using different terminals and mice |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 153 | |terminal.txt| Terminal window support |
Bram Moolenaar | d1caa94 | 2020-04-10 22:10:56 +0200 | [diff] [blame] | 154 | |popup.txt| popup window support |
Bram Moolenaar | 2346a63 | 2021-06-13 19:02:49 +0200 | [diff] [blame] | 155 | |vim9.txt| using Vim9 script |
Bram Moolenaar | 86b4816 | 2022-12-06 18:20:10 +0000 | [diff] [blame] | 156 | |vim9class.txt| using Vim9 script classes |
Bram Moolenaar | 9d87a37 | 2018-12-18 21:41:50 +0100 | [diff] [blame] | 157 | |
| 158 | Programming language support ~ |
| 159 | |indent.txt| automatic indenting for C and other languages |
| 160 | |syntax.txt| syntax highlighting |
| 161 | |textprop.txt| Attaching properties to text for highlighting or other |
| 162 | |filetype.txt| settings done specifically for a type of file |
| 163 | |quickfix.txt| commands for a quick edit-compile-fix cycle |
| 164 | |ft_ada.txt| Ada (the programming language) support |
h-east | 0bdc5d8 | 2024-05-27 17:12:57 +0200 | [diff] [blame] | 165 | |ft_context.txt| Filetype plugin for ConTeXt |
| 166 | |ft_hare.txt| Filetype plugin for Hare |
Bram Moolenaar | 76db9e0 | 2022-11-09 21:21:04 +0000 | [diff] [blame] | 167 | |ft_mp.txt| Filetype plugin for METAFONT and MetaPost |
Bram Moolenaar | 2346a63 | 2021-06-13 19:02:49 +0200 | [diff] [blame] | 168 | |ft_ps1.txt| Filetype plugin for Windows PowerShell |
| 169 | |ft_raku.txt| Filetype plugin for Raku |
Bram Moolenaar | 9d87a37 | 2018-12-18 21:41:50 +0100 | [diff] [blame] | 170 | |ft_rust.txt| Filetype plugin for Rust |
| 171 | |ft_sql.txt| about the SQL filetype plugin |
| 172 | |
| 173 | Language support ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 174 | |digraph.txt| list of available digraphs |
Bram Moolenaar | 207f009 | 2020-08-30 17:20:20 +0200 | [diff] [blame] | 175 | |mbyte.txt| multibyte text support |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 176 | |mlang.txt| non-English language support |
Bram Moolenaar | 9d87a37 | 2018-12-18 21:41:50 +0100 | [diff] [blame] | 177 | |rileft.txt| right-to-left editing mode |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 178 | |arabic.txt| Arabic language support and editing |
| 179 | |farsi.txt| Farsi (Persian) editing |
| 180 | |hebrew.txt| Hebrew language support and editing |
| 181 | |russian.txt| Russian language support and editing |
| 182 | |hangulin.txt| Hangul (Korean) input mode |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 183 | |
| 184 | GUI ~ |
| 185 | |gui.txt| Graphical User Interface (GUI) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 186 | |gui_w32.txt| Win32 GUI |
| 187 | |gui_x11.txt| X11 GUI |
| 188 | |
| 189 | Interfaces ~ |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 190 | |if_cscop.txt| using Cscope with Vim |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 191 | |if_lua.txt| Lua interface |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 192 | |if_mzsch.txt| MzScheme interface |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 193 | |if_perl.txt| Perl interface |
| 194 | |if_pyth.txt| Python interface |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 195 | |if_tcl.txt| Tcl interface |
| 196 | |if_ole.txt| OLE automation interface for Win32 |
| 197 | |if_ruby.txt| Ruby interface |
| 198 | |debugger.txt| Interface with a debugger |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 199 | |netbeans.txt| NetBeans External Editor interface |
| 200 | |sign.txt| debugging signs |
| 201 | |
| 202 | Versions ~ |
| 203 | |vi_diff.txt| Main differences between Vim and Vi |
| 204 | |version4.txt| Differences between Vim version 3.0 and 4.x |
| 205 | |version5.txt| Differences between Vim version 4.6 and 5.x |
| 206 | |version6.txt| Differences between Vim version 5.7 and 6.x |
Bram Moolenaar | c6fe919 | 2006-04-09 21:54:49 +0000 | [diff] [blame] | 207 | |version7.txt| Differences between Vim version 6.4 and 7.x |
Bram Moolenaar | 03413f4 | 2016-04-12 21:07:15 +0200 | [diff] [blame] | 208 | |version8.txt| Differences between Vim version 7.4 and 8.x |
Bram Moolenaar | c51cf03 | 2022-02-26 12:25:45 +0000 | [diff] [blame] | 209 | |version9.txt| Differences between Vim version 8.2 and 9.0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 210 | *sys-file-list* |
| 211 | Remarks about specific systems ~ |
| 212 | |os_390.txt| OS/390 Unix |
| 213 | |os_amiga.txt| Amiga |
| 214 | |os_beos.txt| BeOS and BeBox |
Bram Moolenaar | 8024f93 | 2020-01-14 19:29:13 +0100 | [diff] [blame] | 215 | |os_dos.txt| MS-DOS and MS-Windows common items |
Bram Moolenaar | 7ceefb3 | 2020-05-01 16:07:38 +0200 | [diff] [blame] | 216 | |os_haiku.txt| Haiku |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 217 | |os_mac.txt| Macintosh |
| 218 | |os_mint.txt| Atari MiNT |
| 219 | |os_msdos.txt| MS-DOS (plain DOS and DOS box under Windows) |
| 220 | |os_os2.txt| OS/2 |
| 221 | |os_qnx.txt| QNX |
| 222 | |os_risc.txt| RISC-OS |
| 223 | |os_unix.txt| Unix |
| 224 | |os_vms.txt| VMS |
Bram Moolenaar | 8024f93 | 2020-01-14 19:29:13 +0100 | [diff] [blame] | 225 | |os_win32.txt| MS-Windows |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 226 | *standard-plugin-list* |
| 227 | Standard plugins ~ |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 228 | |pi_getscript.txt| Downloading latest version of Vim scripts |
Bram Moolenaar | a3e6bc9 | 2013-01-30 14:18:00 +0100 | [diff] [blame] | 229 | |pi_gzip.txt| Reading and writing compressed files |
Bram Moolenaar | 979243b | 2015-06-26 19:35:49 +0200 | [diff] [blame] | 230 | |pi_logipat.txt| Logical operators on patterns |
Bram Moolenaar | a3e6bc9 | 2013-01-30 14:18:00 +0100 | [diff] [blame] | 231 | |pi_netrw.txt| Reading and writing files over a network |
| 232 | |pi_paren.txt| Highlight matching parens |
Bram Moolenaar | 01164a6 | 2017-11-02 22:58:42 +0100 | [diff] [blame] | 233 | |pi_spec.txt| Filetype plugin to work with rpm spec files |
Bram Moolenaar | a3e6bc9 | 2013-01-30 14:18:00 +0100 | [diff] [blame] | 234 | |pi_tar.txt| Tar file explorer |
Bram Moolenaar | 9964e46 | 2007-05-05 17:54:07 +0000 | [diff] [blame] | 235 | |pi_vimball.txt| Create a self-installing Vim script |
Bram Moolenaar | a3e6bc9 | 2013-01-30 14:18:00 +0100 | [diff] [blame] | 236 | |pi_zip.txt| Zip archive explorer |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 237 | |
| 238 | LOCAL ADDITIONS: *local-additions* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 239 | |
| 240 | ------------------------------------------------------------------------------ |
| 241 | *bars* Bars example |
| 242 | |
| 243 | Now that you've jumped here with CTRL-] or a double mouse click, you can use |
| 244 | CTRL-T, CTRL-O, g<RightMouse>, or <C-RightMouse> to go back to where you were. |
Bram Moolenaar | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 245 | |
| 246 | Note that tags are within | characters, but when highlighting is enabled these |
Bram Moolenaar | 9160441 | 2010-06-03 20:25:18 +0200 | [diff] [blame] | 247 | characters are hidden. That makes it easier to read a command. |
Bram Moolenaar | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 248 | |
| 249 | Anyway, you can use CTRL-] on any word, also when it is not within |, and Vim |
Bram Moolenaar | 9160441 | 2010-06-03 20:25:18 +0200 | [diff] [blame] | 250 | will try to find help for it. Especially for options in single quotes, e.g. |
| 251 | 'compatible'. |
Bram Moolenaar | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 252 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 253 | ------------------------------------------------------------------------------ |
Bram Moolenaar | 2c64ca1 | 2018-10-19 16:22:31 +0200 | [diff] [blame] | 254 | vim:tw=78:isk=!-~,^*,^\|,^\":ts=8:noet:ft=help:norl: |