" Vim filetype plugin file
" Language: VisualBasic (ft=vb)
" Maintainer: Johannes Zellner
" Last Change: Thu, 22 Nov 2001 12:56:14 W. Europe Standard Time
if exists("b:did_ftplugin") | finish | endif
let b:did_ftplugin = 1
setlocal com=sr:'\ -,mb:'\ \ ,el:'\ \ ,:'
" we need this wrapper, as call doesn't allow a count
fun! VbSearch(pattern, flags)
let cnt = v:count1
while cnt > 0
call search(a:pattern, a:flags)
let cnt = cnt - 1
endwhile
endfun
let s:cpo_save = &cpo
set cpo&vim
" NOTE the double escaping \\|
nnoremap [[ :call VbSearch('^\s*\(\(private\|public\)\s\+\)\=\(function\\|sub\)', 'bW')
nnoremap ]] :call VbSearch('^\s*\(\(private\|public\)\s\+\)\=\(function\\|sub\)', 'W')
nnoremap [] :call VbSearch('^\s*\\s\+\(function\\|sub\)', 'bW')
nnoremap ][ :call VbSearch('^\s*\\s\+\(function\\|sub\)', 'W')
" matchit support
if exists("loaded_matchit")
let b:match_ignorecase=1
let b:match_words=
\ '\%(^\s*\)\@<=\.*\\s*$:\%(^\s*\)\@<=\:\%(^\s*\)\@<=\:\%(^\s*\)\@<=\\s\+\,' .
\ '\%(^\s*\)\@<=\:\%(^\s*\)\@<=\,' .
\ '\%(^\s*\)\@<=\:\%(^\s*\)\@<=\,' .
\ '\%(^\s*\)\@<=\:\%(^\s*\)\@<=\\s\+\,' .
\ '\%(^\s*\)\@<=\