GitHub仓库地址: https://github.com/minhanghuang/nvim
Vim插件 buffers
https://github.com/vim-airline/vim-airline
vim-plug
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
init.vim
" 下一个buffer(循环)
nmap <C-n> :bn<CR>
imap <C-n> <Esc>:bn<CR>i
" 上一个buffer(循环)
nmap <C-p> :bp<CR>
imap <C-p> <Esc>:bp<CR>i
" 关闭当前buffer, 但是需要先将文件树关闭,否则会退出vim
nmap <Leader>bd :bd<CR>
" 显示全角符号
set ambiwidth=double
" 主题
let g:airline_theme="light"
" tag箭头
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#buffer_nr_show = 1
let g:airline#extensions#whitespace#enabled = 0
let g:airline#extensions#whitespace#symbol = '!'
|