mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user