Vim: So long Pathogen, hello native package loading
shapeshed.com
shapeshed.com
- Declarative configuration suitable for version control.
- Parallel installation/update.
- Run scripts or makefile on install/update.
- On-demand loading based on open filetypes.
As your comment implies, vim's improved package handling is still pretty simplistic compared to some existing plugin managers, so there's really no reason _not_ to want the functionality in vim. It's not like it was a huge addition to the code that's now slowing down your system, or messing up existing plugin managers. Similarly, it's not going to cause fuller-featured plugin managers to cease further development.
I've also run into coworkers having some weird transient issues that were fixed when I got them to change to vim-plug. I can't say for sure that's what fixed it of course, but it's now a bit of personal superstition.
It is time to reintroduce some of the fanciness I used to have configured. I was looking forward to trying out Neovim but meanwhile Vim 8 has come out. Which way should I go now?
:tnoremap <Esc> <C-\><C-n>
:tnoremap <A-h> <C-\><C-n><C-w>h
:tnoremap <A-j> <C-\><C-n><C-w>j
:tnoremap <A-k> <C-\><C-n><C-w>k
:tnoremap <A-l> <C-\><C-n><C-w>l
Edit to add: or if you really need a terminal emulator
I had tried neovim in the past and just couldn't get it configured, so I went back to vim. That was maybe 6 months ago though.
So I nuked all my plugins and that's making it better but I'm missing my python lint and DNS serial number update helper, etc...
A few days ago I tried figuring out vim8's plugin stuff, and either the searches I'm doing are not right, or there is very little documentation/discussion on it, because I just didn't get anywhere.
So now I'm trying to figure out where I go from here... Possible choices:
- Neovim, since I have to "start over" with vim anyway. - Figure out the vim8 plugins, spending more time with it. - Atom? It looks sweet from my playing with it, but I'd probably only use it for serious coding, which I don't do that much, I'm a sysadmin and always in and out of editors in the terminal. - Something else (Wingware, Pycharm, ?)
Looks like I need to add something to my schedule to figure this mess out. I'm leaning towards figuring out neovim, because it has a great velocity.
About the package system, yes there really isn't any documentation at all because it doesn't do all that much in the first place. I would suggest just using vim-plug or another package manager.
Also, there really isn't anything to learn in Neovim. Mainly just try out the terminal emulator and come up with some terminal maps.
vim-plug sounds like something I should investigate. I hadn't heard of it before now, I had been using pathogen for the last year or two.
I've been playing a bit with neovim and have it working happily now. Not sure what the problem I was having last time I tried, but it was just a nightmare (granted, I had only given myself 15m to try it).
For packaging I suggest using vim-plug. It's super simple and super fast: https://github.com/junegunn/vim-plug
I've been doing something like this
set rtp^=~/.vim/bundle/ScrollColors/
for each plugin, and it works wonderfully, doesn't complicate things, plus never broke.Granted, I don't auto-update plugins but go into each git repo and checkout the desired release tag (or some revision) if I need to.