From 27903c5b8656c796564ef073c1ebe77a2f0154e1 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 28 Sep 2017 22:18:09 +0200 Subject: Revert inlining basic language pack --- ftplugin/vb.vim | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 ftplugin/vb.vim (limited to 'ftplugin/vb.vim') diff --git a/ftplugin/vb.vim b/ftplugin/vb.vim deleted file mode 100644 index 42642ef9..00000000 --- a/ftplugin/vb.vim +++ /dev/null @@ -1,49 +0,0 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vim') == -1 - -" 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*\)\@<=\\s\+\:\%(^\s*\)\@<=\:\%(^\s*\)\@<=\\s\+\,' . - \ '\%(^\s*\)\@<=\:\%(^\s*\)\@<=\\s\,' . - \ '\%(^\s*\)\@<=\:\%(^\s*\)\@<=\\s\,' . - \ '\%(^\s*\)\@<=\%(\<\%(private\|public\)\>\s\+\)\=\\s\+\([^ \t(]\+\):\%(^\s*\)\@<=\<\1\>\s*=:\%(^\s*\)\@<=\\s\+\,' . - \ '\%(^\s*\)\@<=\%(\<\%(private\|public\)\>\s\+\)\=\\s\+:\%(^\s*\)\@<=\\s\+\' -endif - -let &cpo = s:cpo_save -unlet s:cpo_save - -endif -- cgit v1.2.3