Find the answer to your Linux question:
Results 1 to 2 of 2
When i copy text using clipboard the copy's left margin is often spiraled down the page. I can't remember what I used to do to put the copy back in ...
  1. #1
    Linux User
    Join Date
    Mar 2008
    Posts
    287

    spiraling text reordering

    When i copy text using clipboard the copy's left margin is often spiraled down the page.
    I can't remember what I used to do to put the copy back in original ordered left margin wise.
    Can someone remind me what the vi command(s) are to do this?

  2. #2
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.

    The command
    Code:
    set noai
    will prevent the autoindent from accumulating the whitespace at the left. In vim, there is also
    Code:
    set paste
    which may be of use. As you likely know, set requires a preceding ":'

    The
    Code:
    set all
    command shows you current settings ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...