Tagged Questions
0
votes
2answers
71 views
Automatically change to paste mode when pasting from clipboard
As far as I know, there is no autocmd event for copying and pasting. So I was curious if it is possible to write a script that toggles paste mode when the clipboard is used for paste. If it can handle ...
2
votes
3answers
207 views
VIm copy & paste between apps as a non-superuser
I'm using a work computer so i don't have a root access.
I've tried "+y, "*y, set clipboard=unnamed. It looks like my vim doesn't support +clipboard (version 7.0).
I'm using Linux Centos 5 so ...
4
votes
3answers
1k views
Vim: how to paste a block of text at the end of multiple lines?
Say I have a block of text like this:
// Comment1
// Comment2
// Comment3
And I want to append each of these lines to the end of 3 corresponding lines of code:
foo = 1;
bar = 2;
baz = 3;
So ...
10
votes
1answer
1k views
How can I paste something at the end of the line in VIM?
How can I paste some text that I yanked at the end of the line? Currently I'm doing it by pressing $p. Is there any way to do this with a single keystroke?
1
vote
2answers
462 views
Vim: Copy selection
Having a chunk of text selected in Vim's visual mode, I'd like to copy that to the system's clipboard (be it the primary or X11's). Is there an easy solution for this? Obviously, a simple y doesn't do ...