Loading ...
Sorry, an error occurred while loading the content.

copy styled text

Expand Messages
  • Bee
    request: Since MacVim displays syntax colored text, would it be possible to copy this styled text to the clipboard? I could then copy and paste into
    Message 1 of 3 , Jan 2, 2009
    • 0 Attachment
      request:
      Since MacVim displays syntax colored text, would it be possible to
      copy this styled text to the clipboard? I could then copy and paste
      into documentation.

      --
      Bill
      Santa Cruz, California


      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Nico Weber
      Hi Bee, ... This is possible, but not easy to do. See http://groups.google.com/group/vim_mac/browse_thread/thread/ecc5b351b8d9ad9a/1997bf7aa89fabd5 . Nico
      Message 2 of 3 , Jan 2, 2009
      • 0 Attachment
        Hi Bee,

        > Since MacVim displays syntax colored text, would it be possible to  
        > copy this styled text to the clipboard? I could then copy and paste  
        > into documentation.

        This is possible, but not easy to do. See
        http://groups.google.com/group/vim_mac/browse_thread/thread/ecc5b351b8d9ad9a/1997bf7aa89fabd5
        .

        Nico
        Santa Cruz, California as well.
        --~--~---------~--~----~------------~-------~--~----~
        You received this message from the "vim_mac" maillist.
        For more information, visit http://www.vim.org/maillist.php
        -~----------~----~----~----~------~----~------~--~---
      • Tobia Conforto
        ... (select all, copy & paste) -Tobia --~--~---------~--~----~------------~-------~--~----~ You received this message from the vim_mac maillist. For more
        Message 3 of 3 , Jan 6, 2009
        • 0 Attachment
          Bee wrote:
          > Since MacVim displays syntax colored text, would it be possible to
          > copy this styled text to the clipboard? I could then copy and paste
          > into documentation.

          Here's what I currently do, works pretty well:

          :TOhtml
          :w
          :!open -a Safari "%"
          (select all, copy & paste)


          -Tobia

          --~--~---------~--~----~------------~-------~--~----~
          You received this message from the "vim_mac" maillist.
          For more information, visit http://www.vim.org/maillist.php
          -~----------~----~----~----~------~----~------~--~---
        Your message has been successfully submitted and would be delivered to recipients shortly.