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.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to