Vim: cutting and pasting between Terminal windows.

Has anyone else noticed in vim, that when cutting and pasting between 2 files opened in 2 separate vim sessions, each in it's own terminal.app window. that you get a lot of indentions stuffed in with the paste content? If I open both files within a single vim session by splitting the window. This is not a problem.
on other systems that I use, setting 'noai' resolves this problem. but it doesn't appear to have any effect on OS X. any suggetions?
Thanks,
Andy

Hi Andy,
   Talking to yourself? Don't let this drive you insane. The difference is probably in your ~/.vimrc. In order to avoid the extra indention characters you must unset autoindent and also cindent. You may not set the cindent on the other platforms. I have it set because it's useful in composing code from scratch. However, if I want to paste indented text I have use both ":set noai" and ":set nocindent". After that pasting doesn't add any extra indention.
Gary
~~~~
   Don't let people drive you crazy when you know it's in walking distance.

Similar Messages

  • My Word  documents repeatedly crash when I cut and paste between documents or websites. Can you help?

    My Micrososft Word 2011 repeatedly freeze when I cut and paste between documents or with a website. Any advice?

    This is from the Microsoft Answers website,
    Try a Maggie:
    The Maggie:
    1. Create a new blank document in .docx format
    2. Carefully select all of the text in the bad document EXCEPT the last
    paragraph mark
    3. Copy it.
    4. Paste in the new document.
    5. Save under a new file name and close all, then re-open.
    This technique for de-corrupting is known as "Doing a 'Maggie'", after
    Margaret Secara from the TECHWR-L mailing list, who first publicised the
    technique.

  • Cut and Paste between Events not working

    Using iPhoto11, I can drag and drop pictures between events, no problem...but Cut and Paste does not work.
    I select a photo and cut in event A, go to event B, I right click and get a PAST button, It even clicks but nothing happen, the Cut image never gets pasted.
    Is this a bug? whats the solution?

    To delete the test user, go to the black apple menu, click on system preferences, then on accounts. From an administrator account, click on the "test" user and hit the "-" key. when the dialog box comes up, hit "delete the home folder" and it will be gone.
    For the startup disk issue you should repair permissions. From the finder, click on the "go" menu, then on "utilities". Select disc utility. Select your HD and click on repair disk permissions. This will take several minutes (5 or more).
    If that has not done the trick then you may need to reset the parameter ram (PRAM).  Turn your computer off. When you turn it back on, simultaneously hold 4 keysL command-option-p-r. Keep holding them. The startup chime will ring. Continue to hold until you have heard the chime at least 2 times (more won't help or hurt). Then release.

  • Cut and Paste Between adjacent "Spaces"  How to ??

    Is it possible to either configure or command "Spaces" to display SIMULTANEOUSLY on my screen documents contained in, say, "Space 1" and "Space 2" ?
    If I had a Word document open in one space and a web page in another space, could I select and copy text to the clipboard from the page in Space 2 into a Word document in the adjacent space ? In other words, does Spaces support clipboard cut and paste operations between neighbouring spaces in real, drag and drop time ?
    Can I split my screen in other words

    Hi Michael Bryan;
    Yes, it does.
    I do it all the time. I have one Space with my writing programs and another with my browsers. I am always cut in one Space and pasting in another. I found the quickest way back and forth is to use command + tab to switch between the open applications. It opens up the Space the includes the application to paste into.
    Allan

  • Cut and Paste between mac applications and openoffice

    Using OpenOffice I can cut and paste within OpenOffice using Ctrl-c and Ctrl-v.
    I can copy from Apple Mail using Apple-c, but I cannot paste that text into OpenOffice using Ctrl-v.
    Is there any way of doing this?

    Try using Neo Office Aqua instead. It does work as expected and it does not require X11. Be sure to download not only the application but the most recent patch as well. There are both PPC and Intel versions. Be sure to get the Intel version (http://www.neooffice.org/).
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • Cut and paste between photos

    I am new to Photoshop but I thought there was a way to cut a person from one photo and paste it into another.  Can't seem to find how to do it in any menus or help searches.  Is this possible and how?

    Basically you use the various selection tools to select the person, copy the selection to the clipboard, open the destination picture, and paste from the clipboard. The person is placed on a new layer with transparent background. You can then resize/reposition the person as needed.
    Here is my tutorial demonstrating this and some advanced techniques.
    copy person or object to another picture

  • Ranger File Manager, Cut and Paste

    I have two terminals with ranger, is it possible to cut a file in the first window and to paste it in the other?

    Any ideas...? I'd like to be able to cut and paste between different ranger windows like in graphical file managers... but if that isn't possible do you know any other way?
    Last edited by mt22 (2012-05-07 16:19:21)

  • Cut and paste not working in iphoto

    I can't cut and paste between events in iPhoto any longer.  i tried flagging a photo but the add flag item to event was grayed out. how can you move photos between events.  i tried dragging but page didn't scroll very well so was a little inefficient

    I see, in the "Photos" album I cannot cut and paste either. I can cut the photo from the event, but not paste it into a different event, because It is impossible to select the event for pasting in the Photos album.
    @ Terence Devlin, is pasting into an event supposed to work inside the Photos album?
    I can paste into an event in the Events view. And dragging and dropping between events is working well in the Photos view.
    i tried flagging a photo but the add flag item to event was grayed out.
    This cannot work in Photos view, because "Add flagged items to the selected event" requires an event to be selected, an in the Photos album is no selected event. You can create a new event from the flagged photos and drag this event on top of the event where you want them to go.
    So, I am afraid you will have to switch between the Photos album and the Events view to move your photos around.

  • What has happened to cut and paste files?

    Hi,
    I was a Windows user for a long time and then I switched to Linux, and finally to Mac OS X. So I'm quite used to cut and paste files in Windows and Linux, I didn't discover this problem in Mac OS X until I tried right clicking on a file in order to move it into another folder, but I found out that there is no cut or move option in the menu, so I tried Edit> Cut in the menu bar of Finder but surprisingly I found out it is grayed out, nor does the command X button have any effect. so I always have to drag the files and navigate into the desired folder in order to move them there, which is really frustrating sometimes. Is it my Mac or every other Mac out there has the same Bug? What is the work around solution?

    Thanks for the tip, its what I have been doing for a while.
    You made a good point about cut files being deleted, however I think that is not the case, at least in other Operating systems that I have used, even If I forget to paste a file into a folder, they will never be deleted, at least it never happened to me, but I'm quite sure about this, so I don't think this would be a problem in Mac either, and if it is, which would be embarrassing, then what's the point of putting a dead Cut option in the Menu bar? am I missing something here? there has to be a work around, is it possible that I should change a security setting or something, somewhere?
    Message was edited by: ilgaar

  • Cut and paste problems

    Cut and paste between program has been real buggy since upgrading.  Today, I am trying to cut lines of text out of InDesign and paste into either a web browser or Mail, and nothing happening.  Text cuts OK, cause I can paste it back into ID, but won't let me paste elsewhere.  Had the same problem earlier pasting between Excel and ID.  Anybody else experiencing this?

    It's an extremely important skill to learn to read the API and become familiar with the tools you will use to program Java. Java has an extensive set of documentation that you can even download for your convenience. These "javadocs" are indexed and categorized so you can quickly look up any class or method. Take the time to consult this resource whenever you have a question - you'll find they typically contain very detailed descriptions and possibly some code examples.
    http://java.sun.com/reference/api/index.html
    http://java.sun.com/j2se/1.5.0/docs/api/

  • Project Server / Project Pro = Cut and Paste official best practices to avoid corruption

    It is pretty common knowledge among Project Server veterans that Cut and Paste between Project Pro files can cause corruption with the assignment table. This leads to Publish and Reporting (Project Publish)
    failures. I just went through an upgrade from Project Server 2007 to 2013 and a LOT of files had to be rebuilt from scratch. 
    I ask my users to not Cut and Paste within or between project files. They do not always listen.
    I have looked and cannot find official Microsoft text on the subject or at least some sort of official best practices doc. It would help me prevent some corruption if I had a doc with a Microsoft logo that says “It is not recommended….”
    Or “If you do this you will make your admin cry…”
    If this doc is right in front of me and I just missed it I apologize in advance.
    Thanks

    John --
    To the best of my knowledge, there is no such Best Practice document from Microsoft.  Based on my experience with Project Server from Project Central through Project Server 2013, following are some items that can cause corruption in your project:
    Use of special characters in the name of the project.
    Cutting/copying/pasting entire task rows within a single enterprise project or between multiple enterprise projects.
    Opening an enterprise project on your laptop while connected to a wireless network, then closing the laptop lid, walking to another room in the building when you pass from one wireless access point to another, and then opening the laptop lid again. 
    I learned this from one of our former clients.
    Beyond this, there are some other items that will not corrupt your project, but which will cause problems with saving or publishing a project.  These items include:
    Using blank rows in the project.
    Using special characters in task names.
    Task names that start with a space character (this sometimes happens when copying and pasting from an Excel workbook).
    In both Project Server 2010 and 2013, the recommended method for resolving a corrupted project is to use the Save for Sharing feature. Refer to my directions in the following thread on how to use the Save for Sharing feature:
    http://social.technet.microsoft.com/Forums/projectserver/en-US/ec2c5135-f997-40e1-8fe1-80466f86d373/task-default-changing?forum=projectprofessional2010general
    Beyond what guidance I have provided, I am hoping other members of this community will add their thoughts as well.  Hope this helps.
    Dale A. Howard [MVP]

  • Multiple problems: can't open two windows, browser doesn't close although window disappears, and after working for a while I loose my ability to cut and paste or use drop down arrows

    Maybe two weeks ago I discovered that I could no longer open two windows at a time (I can still open multiple tabs). I am also having problems with cutting and pasting, which is crucial to my on-line job. Plus, when I exit Firefox, it doesn't always shut down, so then when you go to re-open, of course, it won't (unless you go into process and turn it off). I have re-installed multiple times and I have also used restore. Nothing seems to be fixing this and I really, really don't want to use IE, especially for work.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    See also "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * [[Firefox hangs]]
    Maybe also do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • Why can't I cut and paste photos between project?

    I recently made the transition from iPhoto to Aperture. One of the weird things is that I can't cut and paste photos between projects. In iPhoto this is an easy way to organize your projects if some photos are in the wrong place.
    You also can't split projects, in iPhoto you can do this easily. Say, if two day's photos ending being in the same project, in iPhoto there's a button that you split them in the middle. Is there something like this in Aperture?

    Copy and Paste:
    In iPhoto "copy and paste" was possible, because it was not possible in the early versions, to see both projects at the same time, the one you are moving from, and the one you are moving to.
    In Aperture you simply drag from the source project to the destination project to move image versions around. Also, it is easy to see more than one project in the Browser at the same time, see: Aperture 3 User Manual: Working with Two or More Browsers Open
    To drag to another project, select the images in the project, then drag to the other project in the source list, for example:
    To split a project, select the images you want to have in the split part, then create a new project from these images: Enable the check mark "Move selected items to new project". This will split the original project.
    Regards
    Léonie

  • I have Firefox 6.0 running under Windows XL. When I forward an email with a URL in it, my recipients tell me the URL is not highlighted and they have to cut and paste it into their browser. Why? How can I get my forwarded URLs to be highlighted?

    I have Firefox 6.0 running under Windows XL. When I forward an email with a URL in it, my recipients tell me the URL is not highlighted and they have to cut and paste it into their browser. Why? How can I get my forwarded URLs to be highlighted?

    If you think getting your web pages to appear OK in all the major browsers is tricky then dealing with email clients is way worse. There are so many of them.
    If you want to bulk email yourself, there are apps for it and their templates will work in most cases...
    http://www.iwebformusicians.com/Website-Email-Marketing/EBlast.html
    This one will create the form, database and send out the emails...
    http://www.iwebformusicians.com/Website-Email-Marketing/MailShoot.html
    The alternative is to use a marketing service if your business can justify the cost. Their templates are tested in all the common email clients...
    http://www.iwebformusicians.com/Website-Email-Marketing/Email-Marketing-Service. html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • When I cut and past text from Firefox to Microsoft Works I get an error stating 'Out of memory, close applicantions and restart windows'. This does not work. When I had IE I never had this issue. Help!

    When I try to cut and past text from Firefox to Microsoft Works I receive an error that says 'Not enough memory, close applications and restart windows'. This never works! I never had this issue with IE! How can I fix this issue?

    If the crashing only happens with other peoples projects it could be for a variety of reasons. There are tons of asset references saved in the library (the location every item was imported from) and much more. None of those locations will exist on your system and internal complications may simply happen, especially with any runtime shared assets.
    If possible you should consider adding more system RAM so you can multi-task. RAM is extremely cheap. I'm assuming from a smaller 500GB HD and 4GB RAM that you're probably on a laptop however. Installing RAM is still usually pretty easy if you have the notebook manual (or grab it online). It typically involves just lifting the keyboard or opening a single panel on the bottom of the notebook but it varies greatly. At any rate, 8GB RAM would help you quite a bit. If you do, just make sure you get the correct type of RAM (again, in the specs in your manual).
    Even when you run out of physical RAM, Flash (like any other application) will still see more RAM based on the OS's swap memory setting (using available space on your HD as RAM). It will get much slower but Flash should see the total amount the 32bit OS can handle for RAM (it doesn't know if it's physical fast RAM or SWAP (fake) HD RAM though). If you open other apps with Flash they should also operate, but will also use swap RAM and you've probably noticed your HD crunching a lot while more apps are open.
    That said, I have a 4GB RAM in my older i7 lappie and have used Flash CS5.5 and CS6 on it extensively, with other applications open. Although my projects contain mild assets and mostly tons of code. No issues at all. I just think your heavy assets are crashing you.
    Either way, glad you got your work done. You're welcome and good luck!

Maybe you are looking for