更新时间:2021-06-10 18:52:02
coverpage
Title Page
Dedication
About Packt
Why subscribe?
Packt.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
Download the example code files
Conventions used
Get in touch
Reviews
Getting Started
Technical requirements
Let’s start a conversation (about modal interfaces)
Installation
Setting up on Linux
Setting up on MacOS
Using Homebrew
Downloading a .dmg image
Setting up on Windows
Unix-like experience with Cygwin
Installing Cygwin
Using Cygwin
Visual Vim with gVim
Verifying and troubleshooting the installation
Vanilla Vim vs gVim
Configuring Vim with your .vimrc
Common operations (or how to exit Vim)
Opening files
Changing text
Saving and closing files
A word about swap files
Moving around: talk to your editor
Making simple edits in insert mode
Persistent undo and repeat
Read the Vim manual using :help
Summary
Advanced Editing and Navigation
Installing plugins
Organizing workspace
Buffers
Plugin spotlight – unimpaired
Windows
Creating deleting and navigating windows
Moving windows
Resizing windows
Tabs
Folds
Folding Python code
Types of folds
Navigating file trees
Netrw
:e with wildmenu enabled
Plugin spotlight – NERDTree
Plugin spotlight – Vinegar
Plugin spotlight – CtrlP
Navigating text
Jumping into insert mode
Searching with / and ?
Searching across files
ack
Utilizing text objects
Plugin spotlight – EasyMotion
Copying and pasting with registers
Where do the registers come in?
Copying from outside of Vim
Follow the Leader - Plugin Management
Managing plugins
vim-plug
Honorable mentions
Vundle
Do it yourself
Pathogen
Profiling slow plugins
Profiling startup
Profiling specific actions
Deeper dive into modes
Normal mode
Command-line and ex modes
Insert mode
Visual and select mode
Replace and virtual replace mode
Terminal mode
Remapping commands
Mode – aware remapping
The leader key
Configuring plugins
Understanding the Text
Code autocomplete