mhinz /vim-galore

:mortar_board: All things Vim!

★ 18,059⑂ 624👁 305⑃ 74● 98▤ 0
Vim ScriptCC-BY-SA-4.0Created 2016-01-04
+4
日增长
18,059
stars
624
forks
305
watchers
74
prs
98
issues
0
releases

README

Chinese |
    Japanese |
    Portuguese |
    Russian |
    Vietnamese
    
      
      Licensed under CC BY-SA 4.0.
    
  
  


 Intro

- What is Vim?
- The Vim Philosophy
- First steps
- Minimal vimrc
- What kind of Vim am I running?
- Cheatsheets

 Basics

- Buffers, windows, tabs
- Active, loaded, listed, named buffers
- Argument list
- Mappings
- Mapleader
- Registers
- Ranges
- Marks
- Completion
- Motions, operators, text objects
- Autocmds
- Changelist, jumplist
- Undo tree
- Quickfix and location lists
- Macros
- Colorschemes
- Folding
- Sessions
- Locality

 Usage

- Getting help offline
- Getting help offline (alternative)
- Getting help online
- Autocmds in practice
  - User events
  - Nested autocmds
- Clipboard
  - Clipboard usage (Windows, macOS)
  - Clipboard usage (Linux, BSD, ...)
- Restore cursor position when opening file
- Temporary files
  - Backup files
  - Swap files
  - Undo files
  - Viminfo files
  - Example configuration for temporary files
- Editing remote files
- Managing plugins
- Block insert
- Running external programs and using filters
- Cscope
- MatchIt
- True colors

 Tips

- Go to other end of selected text
- Saner behavior of n and N
- Saner command-line history
- Saner CTRL-L
- Disable audible and visual bells
- Quickly move current line
- Quickly add empty lines
- Quickly edit your macros
- Quickly jump to header or source file
- Quickly change font size in GUI
- Change cursor style dependent on mode
- Don't lose selection when shifting sidewards
- Reload a file on saving
- Smarter cursorline
- Faster keyword completion
- Cosmetic changes to colorschemes

 Commands

- :global and :vglobal - Execute a command on all matching lines.
- :normal and :execute - The scripting dream team.
- :redir and execute() - Capture command output.

 Debugging

- General tips
- Verbosity
- Profiling startup time
- Profiling at runtime
- Debugging Vim scripts
- Debugging syntax files

 Miscellaneous

- Additional resources
- Vim distributions
- Standard plugins
- Map CapsLock to Control
- Generating HTML from buffer
- Easter eggs
- Why hjkl for navigation?

 Common problems

- Editing small files is slow
- Editing huge files is slow
- Bracketed paste (or why do I have to set 'paste' all the time?)
- Delays when using escape key in terminal
- Function search undo

 Technical quirks

- Newline used for NUL

 Terminology

- Vim script? Vimscript? VimL?

 List of colorschemes

 List of plugins



 Intro

 What is Vim?

Vim is a text editor with a long line of ancestors that
goes back to qed). Bram
Moolenaar released it in 1991.

The project is hosted online at vim.org.

Getting Vim: Use your favourite package manager or visit the download
page from vim.org.

Discussions and user questions are best done on the
vim_use mailing list or using
IRC (Freenode) in the vim channel.

Development happens on GitHub, discussions on the
vim_dev mailing list.

Read Why, oh WHY, do those ?@! nutheads use
vi? to see common misconceptions about
Vi

Top issues

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON