Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Puts Debuggerer
Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.
I am not sure if I understand this right, but the way I update my plugins in Vim is using a plugin manager called vim-plug and using update command. I just need to run the command in Bash, which runs vim, executes the update command and exits. It's part of my updateall routine set as an alias.
function! InstallPlugins() abort let dir = substitute(&packpath, ",.*", "", "")."/pack/plugins/start/" silent! call mkdir(dir, 'p') call system("git init ".dir) for plugin in g:plugins.repos echo "repo: ".plugin call system("git -C ".dir." submodule add --depth=1 https://github.com/".plugin) endfor call system("git -C ".dir." submodule update --recursive --remote") for f in g:plugins.files echo "file: ".f[0] call system("curl -o ".substitute(&rtp, ",.*", "", "")."/".f[0]." -L ".f[1]) endfor silent! helptags ALL echo "Plugins installed" endfunction