From fa587d5435b8d0c35b06f49def96d43240b153c0 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Tue, 12 Nov 2013 17:14:24 +0900 Subject: [PATCH] - Changed g:neosnippet#enable_snipmate_compatibility behavior. --- autoload/neosnippet.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/autoload/neosnippet.vim b/autoload/neosnippet.vim index 71ab447..d353f0d 100644 --- a/autoload/neosnippet.vim +++ b/autoload/neosnippet.vim @@ -1,7 +1,7 @@ "============================================================================= " FILE: neosnippet.vim " AUTHOR: Shougo Matsushita -" Last Modified: 28 Oct 2013. +" Last Modified: 12 Nov 2013. " License: MIT license {{{ " Permission is hereby granted, free of charge, to any person obtaining " a copy of this software and associated documentation files (the @@ -1343,10 +1343,16 @@ function! s:initialize_script_variables() "{{{ " Initialize. let s:snippets_expand_stack = [] let s:snippets = {} + let s:runtime_dir = [] " Set runtime dir. - let s:runtime_dir = split(globpath(&runtimepath, + let s:runtime_dir += split(globpath(&runtimepath, \ 'autoload/neosnippet/snippets'), '\n') + if g:neosnippet#enable_snipmate_compatibility + " Load snipMate snippet directories. + let s:runtime_dir += split(globpath(&runtimepath, + \ 'snippets'), '\n') + endif let s:runtime_dir += (exists('g:snippets_dir') ? \ split(g:snippets_dir, '\s*,\s*') \ : split(globpath(&runtimepath, 'snippets'), '\n'))