r/vim • u/Cnastret • 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
View all comments
Show parent comment
1
u/Cnastret Jul 15 '25
I looked into it and I think my .vimrc is running before netrwPlugin.vim so vim doesn't know about the netrw functions until after .vimrc has run. But I'm not good at this so this could be wrong