All Projects → svban → YankAssassin.vim

svban / YankAssassin.vim

Licence: other
Don't let the cursor move while Yanking in Vim/Neovim

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to YankAssassin.vim

gh.vim
Vim/Neovim plugin for GitHub
Stars: ✭ 149 (+198%)
Mutual labels:  vim-plugin, neovim-plugin
vim-tips-wiki
1500+ tips downloaded from Vim Tips Wiki, parsed and formatted to look and work like native Vim help files
Stars: ✭ 56 (+12%)
Mutual labels:  vim-plugin, neovim-plugin
42header.vim
Add and update the 42 comment header at the top of your files
Stars: ✭ 15 (-70%)
Mutual labels:  vim-plugin, neovim-plugin
vim-jukit
Jupyter-Notebook inspired Neovim/Vim Plugin
Stars: ✭ 55 (+10%)
Mutual labels:  vim-plugin, neovim-plugin
SimpleSnippets.vim
Simple snippet support for your Vim and Neovim
Stars: ✭ 86 (+72%)
Mutual labels:  vim-plugin, neovim-plugin
auto-pairs
Vim plugin, insert or delete brackets, parentheses, and quotes in pairs
Stars: ✭ 109 (+118%)
Mutual labels:  vim-plugin, neovim-plugin
denops-docker.vim
Manage Docker in Vim/Neovim
Stars: ✭ 48 (-4%)
Mutual labels:  vim-plugin, neovim-plugin
skim.vim
vim support for skim
Stars: ✭ 127 (+154%)
Mutual labels:  vim-plugin, neovim-plugin
bolt.nvim
⚡ Ultrafast multi-pane file manager for Neovim with fuzzy matching
Stars: ✭ 100 (+100%)
Mutual labels:  vim-plugin, neovim-plugin
onestatus
an api to customize tmux from vim
Stars: ✭ 82 (+64%)
Mutual labels:  vim-plugin, neovim-plugin
code runner.nvim
Neovim plugin.The best code runner you could have, it is like the one in vscode but with super powers, it manages projects like in intellij but without being slow
Stars: ✭ 234 (+368%)
Mutual labels:  vim-plugin, neovim-plugin
vim-dap
Vim/Neovim debugger plugin providing a terminal interface to the Debug Adapter Protocol
Stars: ✭ 43 (-14%)
Mutual labels:  vim-plugin, neovim-plugin
vim-lineletters
because letters are easier to touch type than numbers
Stars: ✭ 38 (-24%)
Mutual labels:  vim-plugin, neovim-plugin
cmp-rg
ripgrep source for nvim-cmp
Stars: ✭ 165 (+230%)
Mutual labels:  vim-plugin, neovim-plugin
beacon.nvim
Whenever cursor jumps some distance or moves between windows, it will flash so you can see where it is
Stars: ✭ 217 (+334%)
Mutual labels:  vim-plugin, neovim-plugin
vim-counterpoint
Cycle between file counterparts in vim or neovim.
Stars: ✭ 12 (-76%)
Mutual labels:  vim-plugin, neovim-plugin
vim-readme-viewer
📖 Viewing plugin's README easily like vim help
Stars: ✭ 26 (-48%)
Mutual labels:  vim-plugin, neovim-plugin
stable-windows
Keeps vim windows stable on layout changes
Stars: ✭ 41 (-18%)
Mutual labels:  vim-plugin, neovim-plugin
denops-gh.vim
Vim/Neovim plugin for GitHub
Stars: ✭ 27 (-46%)
Mutual labels:  vim-plugin, neovim-plugin
fzf-checkout.vim
Manage branches and tags with fzf
Stars: ✭ 187 (+274%)
Mutual labels:  vim-plugin, neovim-plugin

What is YankAssassin.vim?

It is really annoying when you want to yank text and paste it close to your cursor and your cursor moves to the start of the yanked text. Especially when you are using text-objects. This plugin helps you fix it. Basically, while Yanking your cursor will not move to the start of the Yanked Text.

Demo

1 2 3

Features

  1. Both Mapping-less(better) & Mapping-plus Solution.
  2. While Yanking, text-objects, count, registers also work.
  3. Provides extra mappings, which have default behaviour.
  4. Works in both Normal & Visual Mode.

Installation

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

Options

  • g:yankassassin_use_mappings = 0 - Mapping-less solution(default), 1 - Mapping-plus solution

Usage

  • You need to set these bindings, these are examples.
  • Default Key Bindings - which moves the cursor to start of yanked text
    nmap <leader>y <Plug>YADefault
    xmap <leader>y <Plug>YADefault
    
  • Mapping-plus Solution
    nmap y <Plug>YAMotion
    xmap y <Plug>YAVisual
    nmap yy <Plug>YALine
    

Others

  • If you are using Neovim, for Yank highlighting you can use
    augroup highlight_yank
        autocmd!
        au TextYankPost * silent! lua vim.highlight.on_yank{ higroup="IncSearch", timeout=500 }
    augroup END
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].