mirror of
https://gitlab.com/wsdjeg/vim-galore-zh_cn.git
synced 2025-01-19 10:39:28 +08:00
4.2 KiB
4.2 KiB
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
- Clipboard
- Restore cursor position when opening file
- Handling backup, swap, undo, and viminfo files
- Editing remote files
- Managing plugins
- Block insert
- Running external programs and using filters
- Cscope
- MatchIt
Tips
- 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 - Redirect messages.
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
- 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