yank Questions

16

Solved

Assuming the current buffer is a file open for edit, so :e does not display E32: No file name. I would like to yank one or all of: The file name exactly as show on the status line, e.g. ~\myfil...
Luganda asked 27/5, 2009 at 16:56

5

Solved

I know that I can yank all matched lines into register A like this: :g/regex/y/A But I can't seem to figure out how to yank match regex groups into register A: :g/\(regex\)/\1y A (E10: \ should...
Lien asked 17/5, 2014 at 16:26

11

Solved

I'm sure there used to be a plugin for this kinda stuff, but now that I need it, I can't seem to find it (naturally), so I'll just ask nice and simple. What is the easiest way to select between br...
Dirt asked 30/6, 2009 at 5:54

4

I would like to mimic a nice effect found in the game Vim Adventures: When a yank command is done, I would like the yanked area to be highlighted (let's say in red) for a second to show me that my ...
Analeptic asked 26/9, 2014 at 22:38

5

Solved

If I yank a word in kakoune, how do I paste it into another editor (e.g. gedit)? I have read How to make vim paste from (and copy to) system's clipboard? since vim is very similar but kakoune doe...
Searcy asked 30/12, 2016 at 13:12

2

Solved

Here is my problem: I am in visual mode. I select text and copy it to the buffer. ((y)ank) I select another text which I want to replace and paste the buffer. ((p)aste) Now the second selection...
Welldefined asked 1/10, 2010 at 9:5

10

Solved

I'm a C# developer who has just recently decided to expand my knowledge of the tools available to me. The first tool I've decided to learn is Vi/Vim. Everything has been going well so far, but ther...
Carloscarlota asked 7/1, 2010 at 19:24

8

Solved

I often find myself repeatedly yanking something after doing some kills and it becomes a process like: C-y C-y M-y C-y M-y M-y C-y M-y M-y M-y Each time I kill some text it pushes the first kil...
Sunshine asked 28/4, 2011 at 18:46

2

Solved

The yankring plugin for Vim creates a file in my home directory called yankring_history_v2.txt. How do I tell the plugin to store this file in another location?
Spun asked 21/2, 2013 at 19:4

4

Solved

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 YankR...
Unappealable asked 6/2, 2012 at 21:40

5

Solved

I'm fairly new to Vim. Tonight, I learned about the "yank" command, but when I try to use it in MacVim, it doesn't do anything. Neither Y nor y{motion} do anything. I tried with a default .vimrc to...
Cardiganshire asked 10/7, 2013 at 2:50

2

Solved

This question was probably answered before, but I tried searching and could not find the answer anywhere. I am somewhat new to Vim and I am having the following issue. Once I yank a line and paste...
Innis asked 12/8, 2014 at 14:34

3

I want to overwrite text by yank as following. Is there any way to do this? kill-ring: text-i-want-to-paste Before: abcdefghijklmnopqrstuvwxyz ^ corsor After: text-i-want-to-pasteuvwxyz
Covenant asked 27/2, 2014 at 16:14

4

Solved

Is there a motion for capturing text in between / or \? I know there is motions for other symbols --- ci" - Capture 'text' inside "text" vi( - Visual capture int var inside foo(int var) di[ - De...
Pemmican asked 14/5, 2014 at 22:22

2

When I tried to run Emacs on a remote server through ssh, the C-y (even M-x yank) can't work. Every time I press C-y, it says "Mark set", but nothing else happens. I'm working under Linux and the r...
Fourdrinier asked 22/11, 2012 at 17:54

1

Solved

I'm yanking range of lines to system clipboard in vim. I can do it with 51gg116"+yy. I'd like to do it via : notation. I can copy to "" register via command :51,116y. However, command 51,116"+y doe...
Arrears asked 21/4, 2014 at 10:16

1

Solved

I want to write a function that will insert the file name of the current buffer into the kill ring so I can yank it to the terminal in another window. How can I programmatically insert a string int...
Emelyemelyne asked 17/3, 2014 at 12:18

4

For example, when I yank some text from vim, then :wq, and open a new file. When I try to paste the text I just yanked, it doesn't work. So how to yank text between files?
Thierry asked 30/7, 2013 at 21:42

1

Solved

I would like to yank - A full path to the file, e.g. c:\foo\bar\file.txt:94 with its line no I would also like to paste it to my system clipboard so i will use '+' register for this. can you ...
Wellchosen asked 5/7, 2013 at 23:37

1

Solved

yank: to pull on something with a quick vigorous movement How does "yank" correspond to the copy functionality in Vim?
Escalate asked 26/5, 2013 at 8:34

4

Solved

With insertions, it is very easy to both wipe out a word/section and insert over it, like so cw delete until end of word (with space) then go to insert mode ce delete until end of word (without s...
Bostic asked 6/3, 2012 at 3:3
1

© 2022 - 2024 — McMap. All rights reserved.