More secure minimal.vimrc (#1158)

* More secure minimal.vimrc

Make minimal.vimrc not execute arbitrary code from Internet or local processes.
- Do not skip TLS checks. GitHub should have valid TLS certificate.
- Save plug.vim to home directory. /tmp is writeable by all local processes.

* miminal.vimrc: Make plug directory home local too
This commit is contained in:
woky
2021-05-31 22:34:29 +02:00
committed by GitHub
parent f53a98754e
commit d0f6bd5ae7

View File

@@ -6,14 +6,14 @@
set nocompatible hidden laststatus=2
if !filereadable('/tmp/plug.vim')
silent !curl --insecure -fLo /tmp/plug.vim
if !filereadable(expand('~/plug.vim'))
silent !curl -fLo ~/plug.vim
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
source /tmp/plug.vim
source ~/plug.vim
call plug#begin('/tmp/plugged')
call plug#begin('~/.vim.plugged')
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/vim-lsp'
Plug 'prabirshrestha/asyncomplete-lsp.vim'