vim-plug: A beautiful and minimalist vim plugin manager for Linux/Unix users
1.
This morning's journey started with the above link. A Facebook post about cool vim tool. And in the middle of the way, I found the author mentioning "~/.vim/autoload". In this point, I get curious which one is used when I type vi? vim or original vi?
2.
So I typed "type vi", and the result was "/usr/bin/vi" as expected. Next I typed "ls -l /usr/bin/vi", expecting "/usr/bin/vi" as normal file, or symbolic link to "/usr/bin/vim". In my surprise, the result was "/etc/alternatives/vi". And also found a lot of symbolic links in /etc/alternavies. What is the /etc/alternatives/ for?
3.
Above two links was the next stop. I learned about update-alternatives command, which was new to me.
Getting back to the original interest, vim-plug, I picked up the download link "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim". From this link, I could easily guess the original GitHub page, which is "https://github.com/junegunn/vim-plug".
5.
And my next stop was, how he wrote the plug-in? And looking for the source code of the plug-in. Not much source code, but I found "plug.vim" would be the only source code. Other files are all documents or maintenance related. When I open the plug.vim, I found strange language.
6.
That was Vim Script language. I didn't know that, either.
7.
Today's track was the typical learning process for me, learning while working or following interesting things. I found many smart people commonly showing the vibrant _curiosity_ for things. And they learning while they following the thing interested. That would be the best way of learning.

No comments:
Post a Comment