目录
- which vim
- Exiting
- Navigating
- Editing
- Clipboard
- Operators
- Text objects
- Find and replace
- Repeat
- Register
- Buffer
- Window
- Tab
- Dir
- Other
- Nerdtree
- OtherPlugins
which vim
系统的vim没有系统剪贴板功能, 所以用brew
安装一个支持系统剪贴板的.
Exiting
Navigating
Editing
Clipboard
Operators
Text objects
Find and replace
Repeat
Register
There are ten types of registers:
- The unnamed register ""
- 10 numbered registers “0 to “9
- The small delete register ”-
- 26 named registers “a to “z or “A to “Z
- three read-only registers ”:, ”., ”%
- alternate buffer register ”#
- the expression register ”=
- The selection and drop registers ”*, ”+ and ”~
- The black hole register ”_
- Last search pattern register “/
Buffer
Window
Tab
Dir
Other
When writing in insert mode, it’s possible to paste a register at the current location without leaving insert mode. To do this, press
CTRL-R
then type the name of a register. For example,CTRL-R
a will insert the contents ofa
.