Added for nvim installation the plug.vim

This commit is contained in:
Marcin Woźniak 2021-10-01 20:00:15 +02:00
parent f8383f13a3
commit 07ee50dbdc
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -1,8 +1,10 @@
" settings
if ! filereadable(system('echo -n "$HOME/.config/nvim/autoload/plug.vim"'))
silent !mkdir -p $HOME/.config/nvim/autoload/
silent !curl --silent "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > $HOME/.config/nvim/autoload/plug.vim
autocmd VimEnter * PlugInstall
if has('nvim')
if ! filereadable(system('echo -n "$HOME/.config/nvim/autoload/plug.vim"'))
silent !mkdir -p $HOME/.config/nvim/autoload/
silent !curl --silent "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > $HOME/.config/nvim/autoload/plug.vim
autocmd VimEnter * PlugInstall
endif
endif
let mapleader = "\<Space>"