9

GitHub - svban/PasteSorcerer.vim: Paste regardless of how it is Yanked!

 2 years ago
source link: https://github.com/svban/PasteSorcerer.vim
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

PasteSorcerer.vim

You can now paste regardless of how it is Yanked. Yanked Entire Line, and now wanted to paste it inline, then no worries, PasteSorcerer.vim got your back.

Features

  1. Paste Yanked Lines inline.
  2. Paste Yanked Words on a new line.
  3. Paste without any Leading/Trailing whitespace.

Installation

  • Vim plug - Plug 'svban/PasteSorcerer.vim'
  • or install it, just like you would any vim-plugin.

Usage

  • You need to set these bindings, these are examples.

    nnoremap gp <Plug>PSInLinep
    nnoremap gP <Plug>PSInLineP
    
    nnoremap <leader>gp <Plug>PSNewLinep
    nnoremap <leader>gP <Plug>PSNewLineP
    
    nnoremap <localleader>gp <Plug>PSNoWSp
    nnoremap <localleader>gP <Plug>PSNoWSP
    

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK