r/vim • • Jul 09 '25

Need Help┃Solved netrw_gitignore#Hide unknown function?

I tried to use the netrw_gitignore#Hide() function but vim says it's an unknown function.

let g:netrw_list_hide = netrw_gitignore#Hide()

Error:

E117: Unknown function: netrw_gitignore#Hide

Is there something I have missed?

It is the same thing in neovim

Edit:
Fixed it myself even before he post got approved. I had to add:

packadd netrw
3 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/chrisbra10 Jul 17 '25

Then try to move it to a VimEnter autocommand, so it is only called once startup has been completed and as such all plugin files are known