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...
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 ...
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...
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...
10
Solved
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...
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...
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...
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...
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
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...
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...
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...
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?
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 ...
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.