Skip to content

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

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

Activity

  1. changed the title [-]Ex command is not defined when using lazy load "excmd=<excmd>"[/-] [+]Lazy loading Ex command should accept arguments, range, bang, and so on[/+] on Jan 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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