Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [autoload]

The tag has no usage guidance.

0
votes
1answer
32 views

Why does autoload/myplugin.vim get sourced?

I noticed that when functions in plugin/myplugin.vim are named using the autoload convention, function! myplugin#myfunction(), the file autoload/myplugin.vim gets sourced on vim startup, even though ...
2
votes
1answer
281 views

Why does `vim-plug` add the .vim file to .vim/autoload and not .vim/plugin?

I am new to Vim plugins and am looking to use the vim-plug plugin manager. The installation instruction advises me to download the .vim file and add it to ~/.vim/autoload. curl -fLo ~/.vim/autoload/...
0
votes
1answer
1k views

How an autoload/file.vim is loaded?

I am on WSL trying to understand why my fakeclip.vim doesn't work. I've added let g:fakeclip_platform = s:PLATFORM into ~/.vim/bundle/vim-fakeclip/autoload/fakeclip.vim, but I can't access the ...
1
vote
1answer
250 views

Autocmd event for `autoread`?

I've just developed a nice solution for automatically loading external changes made to a file, but I'd like a more obvious notification when autoread changes my buffer. Is there a way of having a ...