Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated for version 7.1-263

  • Loading branch information...
commit 160b3ddb75ac8a218b5774fbfd895707340d9573 1 parent 5482382
vimboss authored
Showing with 11 additions and 3 deletions.
  1. +9 −3 runtime/indent.vim
  2. +2 −0  src/version.c
View
12 runtime/indent.vim
@@ -1,7 +1,7 @@
" Vim support file to switch on loading indent files for file types
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2005 Mar 28
+" Last Change: 2008 Feb 22
if exists("did_indent_on")
finish
@@ -15,11 +15,17 @@ augroup filetypeindent
exe b:undo_indent
unlet! b:undo_indent b:did_indent
endif
- if expand("<amatch>") != ""
+ let s = expand("<amatch>")
+ if s != ""
if exists("b:did_indent")
unlet b:did_indent
endif
- runtime! indent/<amatch>.vim
+
+ " When there is a dot it is used to separate filetype names. Thus for
+ " "aaa.bbb" load "indent/aaa.vim" and then "indent/bbb.vim".
+ for name in split(s, '\.')
+ exe 'runtime! indent/' . name . '.vim'
+ endfor
endif
endfunc
augroup END
View
2  src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 263,
+/**/
262,
/**/
261,
Please sign in to comment.
Something went wrong with that request. Please try again.