Skip to content

Instantly share code, notes, and snippets.

@ssh0
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssh0/b251db6c0495f02200f7 to your computer and use it in GitHub Desktop.
Save ssh0/b251db6c0495f02200f7 to your computer and use it in GitHub Desktop.
vimperatorのプラグイン管理を考えてみた ref: http://qiita.com/ssh0/items/8251c24b51a53d5c93d4
" set the root dir for loading plugins(you can set multiple directories)
let g:plugin_loader_roots = "~/.path/to/vimperator/plugins,~/path/to/another/plugins"
" specify the plugin you use (you can omit '.js')
let g:plugin_loader_plugins = "plugin1,plugin2"
source ~/.vimperator/vimppm/vimppm/plugin/vimppm.js " vimppmを置いた場所
vimppm "plugin1.js"
vimppm "plugin2.js"
source ~/.vimperator/vimppm/vimppm/plugin/vimppm.js " vimppmを置いた場所
vimppm "plugin1.js"
vimppm "plugin2.js"
function getVimppmDir() {
var vimperatorDir = io.File(io.File.expandPath("~/.vimperator"));
// if (vimperatorDir.exists()) return "~/.vimperator/vimppm";
if (vimperatorDir.exists()) return "~/.vimperator/plugin";
vimperatorDir = io.File(io.File.expandPath("~/vimperator"));
// if (vimperatorDir.exists()) return "~/vimperator/vimppm";
if (vimperatorDir.exists()) return "~/vimperator/plugin";
vimperatorDir = io.File(io.File.expandPath("~/_vimperator"));
if (vimperatorDir.exists())
// return "~/_vimperator/vimppm";
return "~/_vimperator/plugin";
else
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment