When paste to vim xterm, blanks lines are added after each line

Need expert's help:
When I copy from windows Firefox to my vnc's vim xterm, somehow after each line, several blank lines are added after every single line/paragraph. This is really annoying!
I don't know how to solve it. I changed a my .vimrc to a very simple one, still not working.
thanks!
Qian

You may have a fileformat problem.  I'm pretty sure this will work but I only did one small test.
To display the current vim fileformat – this should return either 'dos' or 'unix'.
:set ff
Vim usually correctly sets the fileformat automatically upon opening a file but will default to using 'unix' if the format can't be determined.  After pasting the text, try the command,
:update
'update' will save the file only if changes to the buffer have occurred.  This command may change the fileformat and all the line endings are now CR-LFs (CR=carriage return; LF=line feed).  Check the fileformat again with
:set ff
If ':update' didn't change the line endings, or the file is now a mix of CR-LFs and LF-only line endings, try this,
:e! ++ff=dos
This should force rereading the buffer as a dos (Windows) format and properly display the lines. All line endings should now be CR-LF.  You can then manually set the fileformat to 'unix' with
:set ff=unix
and finally, save the file with
:w

Similar Messages

  • I did a COPY of some text from a web page, and then did a PASTE into notepad.exe (Windows). The text from each line was duplicated -- on the line! Instead of "Fred", it became "Fred Fred".

    I just recently installed Firefox for the first time. It seems nice and quick. The version is reported as: "10.0.1".
    I wanted to save some text from a web page, so navigated to that page, selected the text, and pressed the Control-C combination to COPY the selected text to the buffer. For example, the text I selected looked something like this:
    Harry
    Ron
    Hermione
    Hagrid
    Albus
    NOTE: Each line of text has a small icon to the left of the text.
    It is not reasonable to COPY and PASTE each line individually, as there can be hundreds of lines of data. I recall, however, that
    doing a COPY and PASTE on this data into Microsoft's Excel will produce cells which have the icons included in the cell, but unfortunately one cannot can't get rid of them! At least I've never found a way to remove them, but that's another issue. :)
    Once I'd done the COPY operation I switched to a Notepad window and did a PASTE operation. To my surprise, the text from each line was duplicated. It looked like this:
    Harry Harry
    Ron Ron
    Hermione Hermione
    Hagrid Hagrid
    Albus Albus
    Thinking that there might be something unusual about the web page I looked at the source, but it appeared "normal" -- that is, as expected.
    Note: I have done this operation several times before, and have never seen this occur before.
    Note: In the actual data some of the lines have quoted text in them. Curiously there is weird behavior on these lines. In some cases the entire line is shown only once. (These occur at the top of the line, and the quoted text is at the beginning of the name.)
    When quoted text appears "later" in the name, in some cases the quoted text is duplicated, and in other cases the quoted text is missing altogether! I have also noticed an error with the quoted text, and so will be reporting that to the web site which generates the HTML.
    Note that each line of "text" is "anchor text", so if I click on a name the browser navigates to a page for that name.
    I believe that the problem is that the COPY operating in Firefox is not simply copying the visible text, but also the ALT=
    Below is a sample of what the source HTML looks like:
    <a class="lnk" target="_blank" href="http://details.aspx?id=Harry">
    <img width="16" height="16" alt="Harry" class="tb_icon" src="http://.../Harry.gif"/>
    <span>Harry</span></a>
    <br/>
    (Because of the true length of the lines in the source HTML, I have stripped out the actual URL of the site.)
    To make sure I wasn't imaging this difference I repeated the process within Internet Explorer. In that browser I did not get duplicated data.

    Try:
    *Extended Copy Menu (fix version): https://addons.mozilla.org/firefox/addon/extended-copy-menu-fix-vers/

  • Withholding tax lines are cleared alongwith other line items (Msg 8I701)

    Hi,
    While processing j1inchln at the time of posting system gives error of Withholding tax lines are cleared alongwith other line items (Msg 8I701)
    regards,
    mahesh

    Hi,
    As per my analysis we found some documents, here We have made advance payment to vendors with TDS and again rised invoce to vendors with TDS and these documents have been nockedoff in F-54.
    We have many documents of such nature and as per me it is because of these documents  the system is throwing error. Pls. advice as to how to proceed on this.
    Thanks,
    Saisri

  • How can I compress photos when emailing from iphoto? current photos are 7-8Mb each

    How can I compress photos when emailing from iPhoto?
    current photos are 7-8Mb each if I just attach them directly

    Aperture won't delete the photos from your iPhone. Most users have settled on using Image Capture ater importing into Aperture to delete the photos from the iPhone.

  • Trouble with format of files exported from pages as .doc - when opened on a pc they have extra spaces and pages breaks inserted after each line?  Can be manually deleted, but defeats sharing purpose. advice?

    Hi all, I have trouble with the format of files exported by email as .doc from pages - when opened in MS word on a PC or other device, they have extra spaces and pages inserted after each line - can be deleted manually, but defeats sharing purpose.  Any advice?  Not the most sophisticated user.

    Got it. I tried booting with MOD_AUTOLOAD set to yes, and it was working fine. Looks like I needed to specify some more modules in my list.

  • While printing from word appl. printer after each line puts in number of page,

    while printing from word appl. printer after each line puts in number of page, so I do not print 3 pages but 5 instead. What to do?

    What printer models is this intended for?  I assume it is aimed at the lower end inkjets, with the suggestion of loading 10-25 sheets of paper.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Will data be updated in the infocube if char. are added after instalation

    Will data be updated in the infocube if charecteristics are added after instalation? can any one help me.

    Nag,
    do you mean tat the IO is added to te cube after data has been loaded ? ( I am not sure if you can do this )
    If it means customizing the delivered version of Business content , you will have to add te IO o the update rules as well , and add the same if required to the Transfer rules and data source to populate date.
    BW is not that intelligent enough to realize what IOBJ you have added and how you want it filled without you specifying the same.
    Arun
    Assign points if helpful

  • Schedule line date changes after each MRP run

    Dear Experts,
    Clarification needed on how the system plans the MM schedule lines.
    Setting: Start in the past not allowed.
                  3 days for processing of order
    The issue is after each MRP run the system is moving the schedule line to the current date + 3 days for processing + the planned delivery time.
    If the schedule line is not firmed, after each MRP run ( which happens everyday) the system is moving the schedule line and then giving an alert saying the " order has to be rescheduled to the previous day"
    on the second day after the mrp run the system moves the schedule line again by one more day and gives the rescheduling date as " -2 days from today"
    this change is happening every day after the planning run. - because of this there are really no backorders ( schedule line in the past ) in the system. we were not able to know if the vendor is actually delayed in this case.
    can you kindly suggest what went wrong here ??
    we are using strategy 10 for the planning of procured parts. Let me know if more info is needed.
    Note: we are also using stock transfer process for some procured parts. there too the PR date gets changed after each MRP run. There there is no lead time in this case. the order is placed on the same day as the requirement as both plants are nearby. There the PR date is changing everyday to the current date.
    your advice would be of great help
    thanks
    Nagendra Kumar

    Hi Caetano,
    thanks for your suggestion
    Yes, we use firm zone for few of the vendors. there the system don't change the schedule lines.
    Also for the stock transfer PR's there is no firm zone and the lead time is one day. in this case it changes everyday after the MRP run.
    the stock transfer PR's leads to the creation of Schedule lines from the source plant. Since this PR gets changed everyday. the alerts coming out of MD07 gets changed and we really did not know if this order is delayed or not.  In the source plant we use the firm zone to avoid moving the schedule line. But then the alerts are always not correct.
    is there any setting which helps in not moving the PR everyday without using " start in the past"
    thanks
    Nagendra Kumar

  • Crystal 2008: Text, Can Grow=true, Max Lines=0, truncated after 2 lines

    I have a fairly simple, grouped report with a handful of fields in each Detail section, one of which is a note/text field.  I put the text field on its own line and set Can Grow = true, max lines = 0 so that it will display what it needs to display.
    This happens to be a crystalreports.com report using data coming from Salesforce, and I can see in the source report that I have about 7 lines of text for one of my groups, but crystal is truncating it after two lines, and in the middle of a word.
    The word ('for') doesn't have any obvious special characters in it, so I'm guessing that there's some sort of character limit that I'm bumping up against.
    I have another record that is returning more than two lines, though; are there particular characters that could cause this?  I can scrub the data and/or put Salesforce Validation Rules in place to try and prevent them from getting in.
    Any suggestions would be appreciated.
    Duncan

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Spooling a file adding spaces after each line

    Hi
    I am spooling a result of an sql in a csv file in linux os. But the file generates lot of blank lines after each row. How this can be eliminated while spooling
    Thanks in advance
    Sas

    Thanks a lot for your reply. Is there any way to supress the display of query result. I dont want to see the result. I want just the output file.
    Thanks
    Sas
    Edited by: SasDutta on Mar 24, 2010 4:20 PM

  • How to commit the PO form after each line using form personalization

    Hi All,
    I have a requirement, wherein we need to commit the Purchase order form, once a line is entered or before moving to the next line using form personalization.
    Please assist me in getting it done.
    Regards,
    KR.
    Edited by: 834152 on Feb 17, 2011 9:13 PM

    Hi Sandeep,
    Thanks for your response.
    At the line level in the purchase order form, we have configured DFF with one field for train# and 14 fields for the container#.
    In order to prevent the user from entering the same container# twice in the same PO. We need to save the PO on each line. So that when the user move to the next line, our program will check with base tables and confirm whether the entered container# is free to use or not.
    Regards,
    KR.

  • Lines are appearing after saving a psd in cc 2014

    Hello,
    I've been having some issues when saving psd's in CC 2014. After saving an image lines tend to appear, and in one case actually added to a mask I was creating. I have image examples below of what has been happening. One last note is that it seems that this issue happens sporadically. If it was on every psd I saved I would have a bit more of a solid thought as to what was wrong, but it just kinda does it whenever it feels like it. I have since restarted my computer, but the issue still is there.
    This image shows when not only did the lines appear, but also they added to my mask I was creating.
    This image is to show that the lines appear randomly sometimes now when viewing images and actually get saved into the document.
    Until I can figure out what is happening I'm switching back to CC for awhile. Any help would be great.

    Ok, I had a bit of time to further test this today -- and it looks like the "Cache Tile Size" settings is the culprit for me. The default 128k setup is creating the lines artefact while working on larger files (something around 1500x1500 pix files and up). Setting a tile size of 132k or higher, I was able to re-open files and the artefacts are gone. Putting back the 128k, opening an offending file and I have the bug. I'm able to reproduce it.
    So the Cache Tile Size fixes it. One note : if I happen to export a file (ex: jpeg), the lines artefacts are "baked" into the artwork. However saving a PSD file with the artefact, and open it after changing the tile size makes the artefacts go away.
    What's weird is that I get this bug now only if the "Use Graphics Processor" is unchecked. But the first time around, it was checked as it looks like it's the default upon Photoshop installed. Now I can switch it back, put the 128K tile size, and I'm ok. Again, it's not an extensive test since I did 20 minutes of fiddling with various files. I'll update later on if the bug's back since I'll use CC 2014 from now on.
    Also note that the first time around, I was able to get the artefacts on much smaller files, but these we're smart objects pasted from Illustrator. This looks fixed now. It might be the way PS handles caching for vector objects.
    So play with these settings, don't forget to close PS on each Performance settings change. Let us know if it fixes it.

  • After each line of text and radio buttons are these squares with numbers inside them. How do I turn them off? Only on firefox does this display happen.

    Numbers seem to be in order. they look like modeling codes used when setting up a website.
    I did not have this problem until I upgraded to the new firefox update.

    Try to set the Boolean pref <b>gfx.font_rendering.directwrite.use_gdi_table_loading</b> to <i>false</i> on the <b>about:config</b> page to see if that helps.
    *http://kb.mozillazine.org/about:config
    Which numbers are in the boxes?
    If you see a box with hex code in it then that means that Firefox can't map a character to a specific font and you have to install a font that covers the affected characters.
    * http://en.wikipedia.org/wiki/Supplementary_Multilingual_Plane

  • Urgent: Oracle Reports : Blank Page Should print after each Group of record

    Hi all,
    I have a different kind of requirement, in my report I have 1 block and I want to generate a blank page after every group of records. This is because the printer is printing both side of the paper and we are giving multiple group at same time.
    Cannot touch the printer setup since it is a common one. Anybody can help me in this for a fast and simple way ? "Maximum records per page" property for the repeating frame give the next group to a fresh page but there will not be a blank page in between.
    Please help ..
    Thanks,
    Ani.

    Thank you for your attention.
    Empty frame with page break is not helping me since it will not hide the rest of the items which are outside the repeating frame. Like Report caption, Group Name, Page footer etc...
    If I am using the empty frame, is there any way to hide all other items ?
    Thanks,
    Anish

  • Text after each line item in Smartforms.

    Hi ,
    I am developing a smartform for Packlist.
    i want to display a text like this::
    Item    Prodcode           description                   Qty  uom     Picked   Factor
                batchNo           batch qty   reel size        to ship              qty
    10         19501       material description            200       M         0          3
                Ramesh      200               482448
                Sagar        200               482448
    Special instructions : text**
    20         19502      material description     200   M         0          3
                Ramesh     200               482448
               Sagar         200               482448
    Special instructions : text**
    Item 10 has 2 batches . after those 2 batches i want to display the Special instructions text.
    like this i want to display for all Items.
    How to give condition for this.
    thankx.
    Vikki

    Hi,
    Check whether the type of  it_final is of table type created in SE11...
    If not...
    create a structure with the fields of it_final... and then
    create a table type with the structure .
    Now in your smartform... in form interface... refer the type of it_final as table type and workarea as structure name
    regards
    padma

Maybe you are looking for

  • Custom fields in additional data B not displaying - Sales Order

    Hi gurus, I added some custom fields to the addtional data B tabstrip in sales order screen, but they didn't display. This is in the client's system. BUT in our own system it works perfectly. The screen has been activated. Maybe it's because of the v

  • Printer Problem In Oracle Forms And Reports server

    Hi, I am facing a problem regarding installation of printer drivers in my Reports Server (10.1.2.0.2 on Windows 2003). Unless the printer driver is installed locally on the Report Server Reports are not printing. The problem is with the USB printers

  • Cant connect N73.

    Hi, I have this problem with my N73.Everytime that i connect it to my computer using the cable that came with it, the homescreen will flicker before i can select the pc suite option then it will restart.It happens all the time and if i dont remove th

  • MacBook Pro will not start, appears to load but does not

    Removed Trend Microsystems, installed Norton 360 multi device, MacBook has unsuccessfully restarted since. Turn on...shows apple logo, runs to load...full bar on screen...nothing else happens...MacBook just shuts down??? Please help. Can't remove Nor

  • I bought something and I can't put it on my ipod!

    Ok, my aunt came over the other weekend and she logged into her account using my computer. I used a itunes gift card to get some songs and acidentally added the 15 dollars to her account. I figured no big deal So I went ahead and bought some music an