> Greg Ercolano wrote:
> > map [[ ?{<CR>w99[{
> > map ]] j0[[%/{<CR>
> >
> >     That works, but the trouble is it clobbers any 'search'
> >     you have pending.
>
>       Ahh, here we go. Took some digging in the manual to figure out
>       how to restore the search stack.
>
>       This seems to work, and no search history clobbering:
>
> " Fltk style back/forward function with [[ and ]]
> map [[ ?{<CR>w99[{:call histdel("search", -1)<CR>:let @/ = 
> histget("search",-1)<CR>
> map ]] j0[[%/{<CR>:call histdel("search", -1)<CR>:let @/ = 
> histget("search",-1)<CR>
>
>       Note: .exrc lines that start with a (") are comments.


IIRC, and it takes a long time to work down to it, but in vim's online
help or tutorial, there is a key sequence that takes you to the start
of the current "block" - where "block" can be defined by " ([{" - so
you could use that to search outwards until you reach the start of
the function. Unfortunately I don't remember the key sequence :-(

D
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to