https://github.com/tjdevries/pastery.vim
🎂 Making pasting into a tasty experience 🎂
https://github.com/tjdevries/pastery.vim
Last synced: over 1 year ago
JSON representation
🎂 Making pasting into a tasty experience 🎂
- Host: GitHub
- URL: https://github.com/tjdevries/pastery.vim
- Owner: tjdevries
- License: mit
- Created: 2017-03-30T18:34:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-30T19:21:32.000Z (over 9 years ago)
- Last Synced: 2025-01-16T19:26:34.087Z (over 1 year ago)
- Language: Vim script
- Homepage:
- Size: 1.95 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pastery.vim
Making pasting into a tasty experience.
This is supposed to make doing some interesting paste combinations easier.
For example, if you have:
```
hello world
some text
here's more text
```
And you want to paste
```
foo
bar
baz
```
on the end of each line, then you can select the three lines you would like to yank, move your cursor to the first line where you'd like to paste, and then type `"$P` to paste onto the end of the line.
Once completed, it will look like:
```
hello world foo
some text bar
here's more text baz
```
You can set whether you want a leading space or not by doing:
```vim
" Set it to true or false
call pastery#leading_space(v:true)
```
This will put a leading space before you paste your items if set to true.
# Install
Use your favorite plugin manager
# Usage
By default, if you don't have anything mapped for these, I have it set to be:
```vim
" Paste what is in your v:register at the end of the line for each line you have yanked
nmap "$P (pastery_default_end)
" Paste what is in your v:register at the column you are on for each line you have yanked
nmap "VP (pastery_default_col)
```