Skip to content

Lazy loading Ex command should accept arguments, range, bang, and so on #180

@tyru

Description

@tyru

When using lazy loading of Ex command(s), the Ex commands should be defined by volt bootstrap script (~/.vim/pack/volt/start/system/plugin/bundled_plugconf.vim).

Here is a example of lazy loading of Ex command(s):

" In $VOLTPATH/plugconf/github.com/tyru/open-browser-github.vim.vim
function! s:loaded_on()
  return 'excmd=OpenGithubFile,OpenGithubIssue,OpenGithubPullReq'
endfunction

Defined Ex command should accept:

  • arguments
  • range
  • bang
  • completion (<Tab> loads the plugin immediately)
  • of course, executing the Ex command loads the plugin and execute loaded command

Ref

on_cmd feature of Shougo/dein.vim

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions