Improve snipMate compatibility

This commit is contained in:
Shougo Matsushita
2014-01-11 05:53:23 +09:00
parent 76278170ac
commit dcf2d8518c
2 changed files with 11 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
"=============================================================================
" FILE: init.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 28 Dec 2013.
" Last Modified: 11 Jan 2014.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -49,10 +49,10 @@ function! s:initialize_script_variables() "{{{
" Load snipMate snippet directories.
let runtime_dir += split(globpath(&runtimepath,
\ 'snippets'), '\n')
if exists('g:snippets_dir')
let runtime_dir += neosnippet#util#option2list(g:snippets_dir)
endif
endif
let runtime_dir += (exists('g:snippets_dir') ?
\ split(g:snippets_dir, '\s*,\s*')
\ : split(globpath(&runtimepath, 'snippets'), '\n'))
call map(runtime_dir, 'substitute(v:val, "[\\\\/]$", "", "")')
" Set snippets_dir.