Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7494971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:53:37+00:00 2026-05-29T17:53:37+00:00

When I delete something in vim, it’s added to the numbered registers. The last

  • 0

When I delete something in vim, it’s added to the numbered registers. The last item I yanked is in register 0. How can I get vim to automatically remember the last 10 yanks too?


I’ve tried YankRing, but it changes too much of vim behavior. An alternative phrasing of this question: How can I configure YankRing so it only adds the Ctrl-n/Ctrl-p behavior after pasting (to cycle through previous yanks)?

I often yank a word, visual select another word, paste, visual select another word, paste. Without YankRing, the last paste puts the first selected word. With YankRing, it pastes the same word again. (This is just one example.)

Here are some of my yankring settings. As you can see, I’ve looked through the YankRing docs to disable as many options as I can to revert to normal vim behavior.

" Some settings to try to get yank ring to not mess with default vim
" functionality so much.
let g:yankring_manage_numbered_reg = 0
let g:yankring_clipboard_monitor = 0
let g:yankring_paste_check_default_buffer = 0

" Don't let yankring use f, t, /. It doesn't record them properly in macros
" and that's my most common use. Yankring also blocks macros of macros (it
" prompts for the macro register), but removing @ doesn't fix that :(
let g:yankring_zap_keys = ''

" Disable yankring for regular p/P. This preserves vim's normal behavior, but
" I can still use C-p/C-n to cycle through yankring.
let g:yankring_paste_n_bkey = ''
let g:yankring_paste_n_akey = ''
let g:yankring_paste_v_key = ''
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T17:53:48+00:00Added an answer on May 29, 2026 at 5:53 pm

    You could try plugin yankstack: a lightweight implementation of the Emacs ‘kill ring’ for Vim.

    Its description states that ‘This plugin is intended to be a simpler alternative to the yankring plugin’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that new-ing something in one module and delete-ing it in another can
I need to delete something with 3 verification checks. how can i do it.
Is there any easy/quick way to yank into vim's last search register (/)? From
Besides INSERT/UPDATE/SELECT/DELETE MySQL has something called HANDLER . I've read that it can be
I often delete, yank, and paste using something like this: :3,6y Since Vim 7,
I want to do something like: DELETE FROM student WHERE student.course, student.major IN (SELECT
i want to delete something from each line of file for example :- i
Possible Duplicate: In Vim: How do I delete a word and go into insert
I know that when you define a function in vim, you can use the
I know that when you define a function in vim, you can use the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.