usr_toc.txt ForVim version 9.2. Last change: 2026 Feb 14 VIM USER MANUALbyBramMoolenaar Table OfContentsuser-manualusr==============================================================================OverviewGetting Startedusr_01.txt About the manualsusr_02.txt The first steps in Vimusr_03.txt Moving aroundusr_04.txt Making small changesusr_05.txt Set your settingsusr_06.txt Usingsyntax highlightingusr_07.txt Editing more than one fileusr_08.txt Splittingwindowsusr_09.txt Using theGUIusr_10.txt Making big changesusr_11.txt Recovering froma crashusr_12.txt Clever tricksEditing Effectivelyusr_20.txt Typing command-line commands quicklyusr_21.txt Go away and come backusr_22.txt Finding the file to editusr_23.txt Editing other filesusr_24.txt Inserting quicklyusr_25.txt Editing formatted textusr_26.txt Repeatingusr_27.txt Search commands and patternsusr_28.txtFoldingusr_29.txt Moving through programsusr_30.txt Editing programsusr_31.txt Exploiting theGUIusr_32.txt Theundo treeTuning Vimusr_40.txt Make new commandsusr_41.txt Writea Vimscriptusr_42.txt Add newmenususr_43.txt Usingfiletypesusr_44.txt Your ownsyntax highlightedusr_45.txtSelect your language (locale)Writing Vim scriptusr_50.txt Advanced Vimscriptwritingusr_51.txt Write pluginsusr_52.txt Write larger pluginsMaking Vim Runusr_90.txt Installing VimReference manualreference_toc More detailed information for all commandsThe user manual (an older version)is availableasa single, ready to printHTML and PDF file here:http://vimdoc.sf.net==============================================================================Getting StartedRead this from start toend to learn the essential commands.usr_01.txt About the manuals01.1 Two manuals01.2 Vim installed01.3 Using the Vimtutor01.4 Copyrightusr_02.txt The first steps in Vim02.1 Running Vim for the First Time02.2 Inserting text02.3 Moving around02.4 Deleting characters02.5 Undo and Redo02.6 Other editing commands02.7 Getting out02.8 Findinghelpusr_03.txt Moving around03.1 Wordmovement03.2 Moving to the start orend ofa line03.3 Moving toa character03.4 Matchinga paren03.5 Moving toa specific line03.6 Telling where you are03.7 Scrolling around03.8 Simple searches03.9 Simple search patterns03.10 Using marksusr_04.txt Making small changes04.1 Operators and motions04.2 Changing text04.3 Repeatinga change04.4Visual mode04.5 Moving text04.6 Copying text04.7 Using theclipboard04.8 Textobjects04.9Replace mode04.10 Conclusionusr_05.txt Set your settings05.1 Thevimrc file05.2 The examplevimrc file explained05.3 Thedefaults.vim file explained05.4 Simple mappings05.5 Addinga package05.6 Addingaplugin05.7 Addingahelp file05.8 The optionwindow05.9 Often usedoptionsusr_06.txt Usingsyntax highlighting06.1 Switchingit on06.2 No or wrong colors?06.3 Different colors06.4 With colors or without colors06.5 Printing with colors06.6 Further readingusr_07.txt Editing more than one file07.1 Edit another file07.2Alist of files07.3 Jumping from file to file07.4 Backup files07.5 Copy text between files07.6 Viewinga file07.7 Changing the file nameusr_08.txt Splittingwindows08.1 Splitawindow08.2 Splitawindow on another file08.3 Window size08.4 Vertical splits08.5 Movingwindows08.6 Commands for allwindows08.7 Viewing differences withvimdiff08.8 Varioususr_09.txt Using theGUI09.1 Parts of theGUI09.2 Using the mouse09.3 Theclipboard09.4Select modeusr_10.txt Making big changes10.1 Record and playback commands10.2 Substitution10.3 Command ranges10.4 The global command10.5Visual block mode10.6 Reading andwriting part ofa file10.7 Formatting text10.8 Changingcase10.9 Using an external programusr_11.txt Recovering froma crash11.1 Basicrecovery11.2 Whereis the swap file?11.3 Crashed or not?11.4 Further readingusr_12.txt Clever tricks12.1Replaceaword12.2 Change "Last, First" to "First Last"12.3 Sortalist12.4 Reverse line order12.5 Count words12.6 Finda man page12.7 Trim blanks12.8 Find whereawordis used==============================================================================Editing EffectivelySubjects that can be read independently.usr_20.txt Typing command-line commands quickly20.1 Command line editing20.2 Command lineabbreviations20.3 Command line completion20.4 Command linehistory20.5 Command linewindowusr_21.txt Go away and come back21.1 Suspend and resume21.2 Executing shell commands21.3 Remembering information;viminfo21.4 Sessions21.5 Views21.6 Modelinesusr_22.txt Finding the file to edit22.1 The file explorer22.2 The current directory22.3 Findinga file22.4 The bufferlistusr_23.txt Editing other files23.1 DOS,Mac andUnix files23.2 Files on theinternet23.3 Encryption23.4 Binary files23.5 Compressed filesusr_24.txt Inserting quickly24.1 Making corrections24.2 Showing matches24.3 Completion24.4 Repeating aninsert24.5 Copying from another line24.6 Insertinga register24.7Abbreviations24.8 Entering special characters24.9Digraphs24.10Normal mode commandsusr_25.txt Editing formatted text25.1 Breaking lines25.2 Aligning text25.3 Indents and tabs25.4 Dealing with long lines25.5 Editing tablesusr_26.txt Repeating26.1 Repeating withVisual mode26.2 Add and subtract26.3 Makinga change in many files26.4 Using Vim froma shellscriptusr_27.txt Search commands and patterns27.1 Ignoringcase27.2 Wrapping around the fileend27.3 Offsets27.4 Matching multiple times27.5 Alternatives27.6 Character ranges27.7 Character classes27.8 Matchinga line break27.9 Examplesusr_28.txtFolding28.1 Whatis folding?28.2 Manualfolding28.3 Working withfolds28.4 Saving and restoringfolds28.5Folding by indent28.6Folding with markers28.7Folding bysyntax28.8Folding byexpression28.9Folding unchanged lines28.10 Which foldmethod to use?usr_29.txt Moving through programs29.1 Usingtags29.2 The previewwindow29.3 Moving througha program29.4 Finding global identifiers29.5 Finding local identifiersusr_30.txt Editing programs30.1 Compiling30.2 IndentingC files30.3 Automatic indenting30.4 Other indenting30.5 Tabs and spaces30.6 Formatting commentsusr_31.txt Exploiting theGUI31.1 The file browser31.2 Confirmation31.3 Menu shortcuts31.4 Vimwindow position and size31.5 Varioususr_32.txt Theundo tree32.1 Undo up toa file write32.2 Numbering changes32.3 Jumping around the tree32.4 Time travelling==============================================================================Tuning VimMake Vim workas you like it.usr_40.txt Make new commands40.1 Keymapping40.2 Defining command-line commands40.3 Autocommandsusr_41.txt Writea Vimscript41.1 Introduction41.2 Variables41.3 Expressions41.4 Conditionals41.5 Executing anexpression41.6 Usingfunctions41.7 Defininga function41.8Lists andDictionaries41.9 Whitespace41.10 Line continuation41.11 Comments41.12 Fileformatusr_42.txt Add newmenus42.1 Introduction42.2 Menu commands42.3 Various42.4 Toolbar andpopupmenususr_43.txt Usingfiletypes43.1 Plugins forafiletype43.2 Addingafiletypeusr_44.txt Your ownsyntax highlighted44.1 Basicsyntax commands44.2 Keywords44.3 Matches44.4 Regions44.5 Nested items44.6 Following groups44.7 Other arguments44.8 Clusters44.9 Including anothersyntax file44.10 Synchronizing44.11 Installingasyntax file44.12 Portablesyntax file layoutusr_45.txtSelect your language (locale)45.1 Language for Messages45.2 Language for Menus45.3 Using another encoding45.4 Editing files witha different encoding45.5 Entering language text==============================================================================Writing Vim scriptusr_50.txt Advanced Vimscriptwriting50.1 Exceptions50.2 Function with variable number of arguments50.3 Restoring theviewusr_51.txt Write plugins51.1 Writinga genericplugin51.2 Writingafiletypeplugin51.3 Writinga compilerplugin51.4 Distributing Vim scriptsusr_52.txt Write larger plugins52.1 Export and import52.2 Autoloading52.3 Autoloading without import/export52.4 Other mechanisms to use52.5 UsingaVim9script from legacyscript52.6Vim9 examples: comment and highlight-yankplugin==============================================================================Making Vim RunBefore you can use Vim.usr_90.txt Installing Vim90.1Unix90.2MS-Windows90.3 Upgrading90.4 Common installation issues90.5 Uninstalling Vim==============================================================================Copyright: seemanual-copyright vim:tw=78:ts=8:noet:ft=help:norl: