[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    RE: Ruby / Matchit.vim
From:       "Scott LaBounty" <slabounty () nexatechnologies ! com>
Date:       2002-12-31 14:54:25
[Download RAW message or body]

Thanks, I just put this "as is" in my vimfiles/ftplugin directory as
ruby.vim and everything worked great! OK, I only tested for 10 seconds
but still ... ;-)

Thanks again.

Scott LaBounty
Nexa Technologies, Inc.

-----Original Message-----
From: Nikolai :: lone-star :: Weibull [mailto:lone-star@home.se] 
Sent: Monday, December 30, 2002 3:56 PM
To: 'vim-list'
Subject: Re: Ruby / Matchit.vim


On Mon, 30 Dec 2002 14:43:39 +0000, Scott LaBounty wrote:
> Has anyone extended matchit.vim to handle ruby code?
>
> Scott LaBounty
> Nexa Technologies, Inc.
>
>
yeah,

if exists("loaded_matchit")
    if !exists("b:match_words")
	let b:match_ignorecase = 0
	let b:match_words =
	    \
'\%(\%(\%(^\|[;=]\)\s*\)\@<=\%(class\|module\|while\|begin\|until\|for\|
if\|unless\|def\|case\)\|\<do\)\>:' .
	    \
'\<\%(else\|elsif\|ensure\|rescue\|when\)\>:\%(^\|[^.]\)\@<=\<end\>'
    endif
endif


--
::: name: Nikolai Weibull       :: aliases: pcp / lone-star    :::
::: born: Chicago, IL USA       :: loc now: Gothenburg, Sweden :::
::: page: http://pcppopper.org/ :: top ref: google "pcp rocks" :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic