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

Re: disable X when vim is in a console over ssh

Expand Messages
  • dman
    ... Ahh, thanks! That fixes it. -D -- Only two things are infinite, the universe and human stupidity, and I m not sure about the former. Albert Einstein
    Message 1 of 3 , Jan 3, 2002
    View Source
    • 0 Attachment
      On Thu, Jan 03, 2002 at 02:28:50PM -0500, Benji Fisher wrote:
      | On Thursday, January 3, 2002, at 02:27 PM, dman wrote:
      | >
      | >I want to disable using the X clipboard when I run vim in a console
      | >over ssh because it makes the startup time becomes too long. I've
      | >RTFMed and come up with this (for .vimrc)
      ...
      | >the regex that works in vim for regular buffers (ie :s command)
      | >doesn't work here :
      | >
      | > let g:display_num =
      | > \ substitute( $DISPLAY ,
      | > \ "^[[:alpha:]]*:\([[:digit:]]\+\)\.[[:digit:]]\+$" ,
      | > \ "\1" , "" )
      |
      | Try using single quotes instead of double quotes. To see what
      | argument the substitute() function is actually getting, try
      |
      | :echo "^[[:alpha:]]*:\([[:digit:]]\+\)\.[[:digit:]]\+$" "\1"

      Ahh, thanks! That fixes it.

      -D

      --

      Only two things are infinite, the universe and human stupidity, and I'm
      not sure about the former.
      Albert Einstein
    Your message has been successfully submitted and would be delivered to recipients shortly.