Created
February 23, 2014 01:37
-
-
Save Genki-S/9165361 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let s:plugin_setting_dirname = expand('~/.vim/plugin_settings') | |
function! s:edit_plugin_setting(plugin_name) | |
if !isdirectory(s:plugin_setting_dirname) | |
call mkdir(s:plugin_setting_dirname) | |
endif | |
execute 'edit' s:plugin_setting_dirname . '/' . a:plugin_name . '.vim' | |
endfunction | |
command! -nargs=1 | |
\ -complete=customlist,neobundle#complete_bundles | |
\ EditPluginSetting | |
\ call s:edit_plugin_setting(<q-args>) | |
AlterCommand ps EditPluginSetting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment