I have a little vim problem.
Suppose you have a file with C source code and you want to copy-paste that
piece of code. Suppose the original looks as follows:
int main(void) {
double d = log(16.0);
printf("%f \n", d);
return 0;
}
Now, if I want to copy-paste this (select and paste with middle mouse
button on a linux system), the result looks like this:
int main(void) {
double d = log(16.0);
printf("%f \n", d);
return 0;
}
As you can see, the alignment is going wrong. This is quite annoying,
especially when a large piece of code is copy-pasted.
Other possibly relevant information:
- I use VIM - Vi IMproved 6.1 on a linux platform
- I have no custom plugins/syntax files installed other than those who
came with the vim distribution
I would be grateful if someone could tell me how to avoid these kind of
things from happening...
kind regards,
Mike Matton
Cheers,
Pieter