Re: disable X when vim is in a console over ssh
- View Source
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.
Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former.