summaryrefslogtreecommitdiff
path: root/runtime/indent/vb.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-28 12:52:27 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-28 12:52:27 +0200
commit59c0395e6b49e916fca339f63291c56151decc6b (patch)
tree0cc38edaa0843c390de0e49e64954f14f20e4d57 /runtime/indent/vb.vim
parent5ac3b1aae2bdcf9f02ac0ebf97836ae3c709c2dc (diff)
downloadvim-git-59c0395e6b49e916fca339f63291c56151decc6b.tar.gz
Minor runtime file updates.
Diffstat (limited to 'runtime/indent/vb.vim')
-rw-r--r--runtime/indent/vb.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/indent/vb.vim b/runtime/indent/vb.vim
index 85021bd7d..5f386f791 100644
--- a/runtime/indent/vb.vim
+++ b/runtime/indent/vb.vim
@@ -2,6 +2,7 @@
" Language: VisualBasic (ft=vb) / Basic (ft=basic) / SaxBasic (ft=vb)
" Author: Johannes Zellner <johannes@zellner.org>
" Last Change: Fri, 18 Jun 2004 07:22:42 CEST
+" Small update 2010 Jul 28 by Maxim Kim
if exists("b:did_indent")
finish
@@ -63,7 +64,7 @@ fun! VbGetIndent(lnum)
" end select
let ind = ind - &sw
endif
- elseif this_line =~? '^\s*\<\(end\|else\|until\|loop\|next\|wend\)\>'
+ elseif this_line =~? '^\s*\<\(end\|else\|elseif\|until\|loop\|next\|wend\)\>'
let ind = ind - &sw
elseif this_line =~? '^\s*\<\(case\|default\)\>'
if previous_line !~? '^\s*\<select\>'
@@ -73,3 +74,5 @@ fun! VbGetIndent(lnum)
return ind
endfun
+
+" vim:sw=4