Merge pull request #331 from lifepillar/colorscheme-menu

Add themes under packpath to Edit > Color Scheme.
This commit is contained in:
Kazuki Sakamoto
2016-08-19 11:34:19 -07:00
committed by GitHub
+1
View File
@@ -389,6 +389,7 @@ endfun
" get NL separated string with file names
let s:n = globpath(&runtimepath, "colors/*.vim")
let s:n .= globpath(&packpath, "pack/*/{opt,start}/*/colors/*.vim")
" split at NL, Ignore case for VMS and windows, sort on name
let s:names = sort(map(split(s:n, "\n"), 'substitute(v:val, "\\c.*[/\\\\:\\]]\\([^/\\\\:]*\\)\\.vim", "\\1", "")'), 1)