Skip to content

Instantly share code, notes, and snippets.

@Genki-S
Created February 23, 2014 01:37
Show Gist options
  • Save Genki-S/9165361 to your computer and use it in GitHub Desktop.
Save Genki-S/9165361 to your computer and use it in GitHub Desktop.
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