01. How to install vim.plug into Neovim

But first, back up your current Neovim settings!!!

Linux & Mac:

~/.config/nvim/init.vim

Windows:

~\AppData\Local\nvim\init.vim

Go to this page under Installation, find your operating system and copy the link under it into your terminal and use Enter to install vim.plug.

On Linux and macOS it will be this command:

sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

On Windows it will be this command:

iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
    ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force

Next, open the init.vim file and if you don't have it, create it here:

Linux & Mac:

~.config/nvim/init.vim

Windows:

~\AppData\Local\nvim\init.vim

And into it we insert and then save this code:

call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')

# Jsem budeš v budoucnu vkládat pluginy. Začínající PLug a adresa ke stažení

call plug#end()

And use the Nvim command in the terminal to start Neovim. If you get an error message just click it.

Use Ctrl + : to get to the command line and type PlugInstall

And restart Neovim. Use Ctrl + : to type q at the command prompt and restart Neovim.

This way, every time you add plugins to init.vim, you use the PlugInstall command to install them and restart Neovim.

Copyright © 2024 - 2025 🚀 ApolloNvim / Lukáš Kaňka