安装vim `sudo apt install vim`
安装plug-vim `curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.njuu.cf/junegunn/vim-plug/master/plug.vim` 创建配置 `vim .vimrc`
粘贴配置
set bs=2 " Allow backspacing over everything in insert mode
set ai " Always set auto-indenting on
set history=50 " keep 50 lines of command history
set ruler " Show the cursor position all the time
" Don't use Ex mode, use Q for formatting
map Q gq
" When doing tab completion, give the following files lower priority.
set suffixes+=.info,.aux,.log,.dvi,.bbl,.out,.o,.lo
set nomodeline
syntax on
autocmd BufRead APKBUILD set filetype=sh
set un
set tabstop "tab 长度设置为 4Plug 'godlygeek/tabular'
set nobackup "覆盖文件时不备份
set cursorline "突出显示当前行
set ruler "在右下角显示光标位置的状态行
set autoindent "自动缩进
call plug#begin('~/.vim/plugged') "该路径可以自己指定
Plug 'preservim/NERDTree' "该插件托管在GitHub上,因此直接输入用户名和项目ID即可,如果你需要的插件没有托管在GitHub上,可以提供完整的URL
Plug 'skywind3000/vim-auto-popmenu'
lug 'skywind3000/vim-dict'
Plug 'ghifarit53/tokyonight-vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'yggdroot/indentline'
Plug 'w0ng/vim-hybrid'
Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'
Plug 'yggdroot/indentline'
Plug 'kyazdani42/nvim-tree.lua'
Plugin 'yianwillis/vimcdoc-speak-now'
call plug#end()
" enable this plugin for filetypes, '*' for all files.
let g:apc_enable_ft = {'text':1, 'markdown':1, 'php':1,'python':1}
"source for dictionary, current or other loaded buffers, see ':help cpt'
set cpt=.,k,w,b
"don't select the first item.
set completeopt=menu,menuone,noselect
" suppress annoy messages.
set shortmess+=c
map <C-c> :NERDTreeToggle<CR>
nnoremap <C-i> :ApcEnable<CR>
" ",
" ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ",
" ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ",
" ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ",
" ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ",
" ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ",
" ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ",
标签:Plug,极简,插件,set,配置,vim,airline,plug
From: https://www.cnblogs.com/SBmiddleschoolstudent/p/18213528