Improve snipMate compatibility
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user