NVIM 的安装方式请自行百度
nvim ~/.config/nvim/init.vim
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob('~/.config/nvim/autoload/plug.vim'))
#以下是代理,请配置自己的代理
silent execute '!curl --socks5-hostname 127.0.0.1:7891 -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
source $MYVIMRC
endif
call plug#begin('~/.config/nvim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'morhetz/gruvbox'
Plug 'preservim/nerdtree'
Plug 'yggdroot/indentline'
Plug 'voldikss/vim-floaterm'
" uncomment the line below to enable gitgutter
Plug 'airblade/vim-gitgutter'
" uncomment the line below to enable plugin for golang. go should be installed on the OS.
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
" uncomment the line below to enable plugin for rust.
Plug 'rust-lang/rust.vim'
" uncomment the line below to enable plugin for python
Plug 'davidhalter/jedi-vim'
" uncomment the 2 lines below to enable tagbar. universal-ctags should be installed on the OS.
"Plug 'majutsushi/tagbar'
"Plug 'ludovicchabant/vim-gutentags'
" uncomment the line below to enable markdown preview
Plug 'jamshedvesuna/vim-markdown-preview'
" uncomment the line below to enable markdown preview
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
" table mode for markdown
Plug 'dhruvasagar/vim-table-mode'
" uncomment the line below to enable vimwiki
Plug 'vimwiki/vimwiki'
" uncomment the line below to enable fzf
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end()
set nu
set relativenumber
set cursorline
set syntax=on
set ts=4
set expandtab
colorscheme gruvbox
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#left_sep = ' '
let g:airline#extensions#tabline#left_alt_sep = '|'
nnoremap tt :NERDTreeToggle<CR>
nmap <F8> :TagbarToggle<CR>
git clone --recursive https://github.com/davidhalter/jedi-vim.git ~/.vim/bundle/jedi-vim
NVIM 里面执行
:PlugInstall
pip3 install --user pynvim