首页 » 工作 » 方法 » 正文

vim 配置

发布者:站点默认
2020/01/11 浏览数(94) 分类:方法 vim 配置已关闭评论

1. download ~/.vim/autoload/plug.vim

2. mkdir ~/.vim/plugged/

3. ~/.vimrc

set laststatus=2                             " 永远显示状态栏
let g:airline#extensions#tabline#enabled = 1 " 显示窗口tab和buffer
let g:airline#extensions#tabline#alt_sep = 1 
let g:airline#extensions#tabline#left_sep = ''
let g:airline#extensions#tabline#left_alt_sep = ''
let g:airline#extensions#tabline#right_sep = ''
let g:airline#extensions#tabline#right_alt_sep = ''
let g:airline#extensions#tabline#buffer_idx_mode = 1 
let g:airline#extensions#tabline#show_tab_nr = 1 
let g:airline#extensions#tabline#tab_nr_type = 2 
let g:airline#extensions#tabline#buffers_label = 'Buffers'
let g:airline#extensions#tabline#tabs_label = 'Tabs'
let g:airline#extensions#tabline#overflow_marker = '…' 

call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'        " 状态栏美化
Plug 'vim-airline/vim-airline-themes' " 状态栏美化
Plug 'airblade/vim-gitgutter'         " 状态栏 git 信息
Plug 'mhinz/vim-signify'              " 在行号旁边显示 git 信息
Plug 'sheerun/vim-polyglot'           " 多种语言的语法高亮支持
call plug#end()

4. Reload .vimrc and :PlugInstall to install plugins.

点击返回顶部
  1. 留言
  2. 联系方式