1
vote
2answers
711 views

Copy visual mode selection below selection in vi

In vim, I often find myself repeating the same steps to copy a section before making changes to it: V to start Visual mode linewise j until I have selected the section I want to copy y to yank the ...
4
votes
1answer
137 views

Abort a vim paste

Sometimes I paste a lot of data into vim (>5000 rows) and forget to enable paste mode. In that case, vim is busy for several minutes, trying to correctly indent all the text (which gets REALLY bad ...
4
votes
6answers
6k views

UNIX - How to copy and paste between different bash windows with files opend with VI?

Lets say I log in to bash, open a file in vi, then using alt-f2 I open a new terminal. After logging in I navigate to a second file and open that in vi. How can I CnP between these two files? I found ...