apt install -y vim
apt install -y neovim
apt install -y curl 下載安裝工具命令 或者wget
安裝插件管理器 [vim-plug]([https://github.com/junegunn/vim-plug](https://github.com/junegunn/vim-plug))
以下命令不行的話 就直接下載壓縮包或者git clone下來 將包中的plug.vim 放到 .vim/autoload/下
curl -fLo?/ .vim/ autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
apt -y install tree lrzsz git
安裝nodejs
sudo apt-get install nodejs
sudo apt install nodejs-legacy
sudo apt install npm
或者 centos下的
curl -sL install-node.now.sh/lts | bash
curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
安裝yarn coc平臺需要此環境打包
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
yum install -y yarn
"補全提示插件
Plug 'neoclide/coc.nvim', {'branch': 'release'}
打開nvim 安裝 coc-phpls
:CocInstall coc-phpls
配置示例
" 設置行號
set nu
" 或者
set number
"設置忽略大小寫
set ignorecase
" 高亮
syntax on
"自動展開目錄
autocmd VimEnter * NERDTree
map <F2> :NERDTreeMirror<CR>
map <F2> :NERDTreeToggle<CR>
其他插件
" 狀態欄
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
"tab補全
Plug 'ervandew/supertab'
"語法高亮
Plug 'sheerun/vim-polyglot'
"窗口浮動
Plug 'voldikss/vim-floaterm'
" 縮進
Plug 'Yggdroot/indentLine'
"樹形目錄
Plug 'preservim/nerdtree'
"括號補全
Plug 'jiangmiao/auto-pairs'