mhinz / mhinz/vim-startify

Startify runs if argc() > 0

Open
#492 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
5.4k
Forks
181
PR merge metrics
No merged PRs in 30d

Description

In my vimrc with the latest Startify repo pulled by plug, I have

> autocmd VimEnter * if !argc() | Startify | endif

If I run vim -c "GV" or vim +Gitv I see the plugin loading for a split second then Startify kicks in.

There are no issues when I simply pass a file to vim

I have no other autocmd VimEnter lines in my vimrc and Nerdtree is installed but not configured to load with autocmd.

If i try

> vim --cmd 'let g:startify_disable_at_vimenter = 1' +GV

I get the same result as above

Have I missed something?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the VimEnter autocmd and the Startify invocation described in the issue. Reproduce with `vim -c "GV"`, `vim +Gitv`, and the `g:startify_disable_at_vimenter` setting, then trace the plugin's startup handling; done means these commands no longer replace the requested screen with Startify.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.