1 nnoremap <silent> <buffer> ]] :call <SID>Go_jump('/^\(func\\|type\)')<cr>
2 nnoremap <silent> <buffer> [[ :call <SID>Go_jump('?^\(func\\|type\)')<cr>
3 nnoremap <silent> <buffer> ]m :call <SID>Go_jump('/^\s*\(func\\|type\)')<cr>
4 nnoremap <silent> <buffer> [m :call <SID>Go_jump('?^\s*\(func\\|type\)')<cr>
6 if exists('*<SID>Go_jump') | finish | endif
8 fun! <SID>Go_jump(motion) range
10 let save = @/ " save last search pattern
17 let @/ = save " restore last search pattern