Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yank multiple lines to clipboard with <leader>yny? #1

Open
roachsinai opened this issue Nov 2, 2018 · 0 comments
Open

Yank multiple lines to clipboard with <leader>yny? #1

roachsinai opened this issue Nov 2, 2018 · 0 comments

Comments

@roachsinai
Copy link

Hi, @nowox I find you use Ctrl + C to copy things from Vim with these settings:

" <C-c> Copy/Yank word/selection
" default: Interrupt current command
inoremap <C-c> <esc>m`viw"+y``a
nnoremap <C-c> m`viw"+y``
vnoremap <C-c> "+y

But, it will also copy the line numbers, doesn't it?

I set let mapleader=";"and also set noremap <Leader>y "+y, which I expect to use ;yy yank 1 line to clipboard, ;y2y yank 2 lines, ;y3y yank 3 lines, and so on. I fact it does not work!

If I set omap <Leader>y "+y or nmap <Leader>y "+y to my vimrc, only ;yy yank 1 line to clipboard. But ;yny doesn't work, which n is any number, enen n is 1, mean ;y1y doesn't work.

So, is there a way to Yank multiple lines to clipboard with <leader>yny?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant