Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
vim copy paste problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike Matton  
View profile  
 More options Feb 12 2004, 8:00 am
Newsgroups: comp.editors
From: Mike Matton <Mike.Matton+...@cs.kuleuven.ac.be>
Date: Thu, 12 Feb 2004 14:00:08 +0100
Local: Thurs, Feb 12 2004 8:00 am
Subject: vim copy paste problem
Hi all,

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pieter  
View profile  
 More options Feb 12 2004, 10:35 am
Newsgroups: comp.editors
From: pieter <n...@NOSPAM.internethoofdkantoor.nl>
Date: Thu, 12 Feb 2004 16:35:55 +0100
Local: Thurs, Feb 12 2004 10:35 am
Subject: Re: vim copy paste problem
On Thu, 12 Feb 2004 14:00:08 +0100, Mike Matton wrote:
> [snip]
> As you can see, the alignment is going wrong. This is quite annoying,
> especially when a large piece of code is copy-pasted.

:h paste

Cheers,

Pieter


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google