| « VIM: Move in program | AutoHotkey - Free Mouse and Keyboard Macro Program with Hotkeys and AutoText » |
Copy and paste in VIM
Multiple buffer of VIM
Vim has following buffer. You can use help registers to get detail help in VIM.
- Unamed register:""
- Use it when you not point out any register.
- Numbered register:"1 to "9
- You can specify them in y,yy and p command. But VIM will use them as a queue. Which mean VIM always put latest change in "0 and shift content of each register to next one. It means $9 will be lost. For VIM compatible, %, (, ),`, /, ? n,N, {, } trigged delete always use "1.
- Named register: "a-"z, "A-"Z
- Used by user
- GUI register: "+ and $*
- Register exchange data with GUI
- ".
- Last inserted text
- "%
- The name of current file
- "#
- The name of alternate file
- ":
- The most executed command-line
- "/
- Most recent search patten
Command
- y
- [range]["?]y[movment]. For example: "ay$
- yy
- [range]["?]yy
- p
- ["?]p
- gp
- Same as p, but put cursor at end of text