Questions tagged [yank]

yanking is the older word for copying a line to a clipboard. Use this tag to ask about how the command is working, or advanced combinations.

yanking is the older word for copying a line to a clipboard. This is favoured in UNIX text editors such as and . Use this tag to ask about how the command is working, or advanced combinations/commands which involve yanking several lines.

68 questions
0
votes
1 answer

How to put/insert multiple yanked/deleted lines in vim

A simple problem that I do not have the right terminology to google to. I am in visual mode when I delete some lines: aaa eee fff bbb ccc ddd ggg hhh from first whitespace in 'b' row I press $ to select to end of line and then down to 'd' line…
AWE
  • 4,045
  • 9
  • 33
  • 42
0
votes
1 answer

Paste in multiple files with one command in VIM

Let's say i have opened 10 HTML files horizontally in VIM by using vim -o *.html I would like to delete the last portion of the files by using range of lines and the windo command to apply it to all windows: :windo :55, $ d Now, I have yanked new…
flangofas
  • 332
  • 1
  • 5
  • 15
0
votes
3 answers

What is the Vim command to copy content from a file (opened in Vim editor) and paste in Firefox browser address bar?

I'm trying to copy a text (link) from my file (opened in vim), go to FF browser and paste the copied text in address bar. How should I do that without touching Mouse? I am using Ubuntu OS and vim editor Steps: Open a file using vim vim…
RaviRokkam
  • 789
  • 9
  • 16
0
votes
2 answers

how to yank text from one instance of gvim to another using ex commands

So I have a lot of lines to copy from one file (open in one instance of gvim) to another file (open in another instance of gvim) and I'm using ex commands. So I tried doing the usual :0,164ya and then going to the other file and doing :pu and I…
SilentDev
  • 20,997
  • 28
  • 111
  • 214
0
votes
1 answer

Yanking in vim fails after using shift+v

Normally, I am using and to select some lines of code in vim. Then I use to yank the lines. Then, I do

for pasting the code at the desired location. I used this step for a long time and had no issues. Recently, I…

SKPS
  • 5,433
  • 5
  • 29
  • 63
0
votes
1 answer

How to yank in a search in an emacs lisp function

(defun search-for-what-is-just-killed () (interactive) (search-forward latestkillringvariable? nil t) ) How to use "yank" in an emacs lisp function?
PascalVKooten
  • 20,643
  • 17
  • 103
  • 160
-1
votes
2 answers

Yank text from VIM editor from one session to another session

I use Putty to connect to a server and I use 2 sessions, because I want to compare 2 .sh files and I find it easier to have both files on different windows. I am using VIM as a text editor and want to yank a line from the file of the first session…
Petar Yakov
  • 169
  • 2
  • 14
-1
votes
1 answer

VIM Colemak yank remapping issues

So I am using an alternate Keyboard layout on my Mac (Colemak) and I have vim remapped for colemak layout by editing the .vimrc file as such (just two lines so that you get the picture): noremap y o noremap p r ... (and so on) So now, in VIM when…
1 2 3 4
5