vim: replace airline with lightline
This commit is contained in:
parent
9982f4bbb9
commit
06f8655392
1 changed files with 24 additions and 22 deletions
46
files/vimrc
46
files/vimrc
|
@ -108,28 +108,30 @@ call plug#begin('$XDG_DATA_HOME/vim/plugged')
|
||||||
let g:ctrlp_show_hidden = 1 " show hidden files
|
let g:ctrlp_show_hidden = 1 " show hidden files
|
||||||
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'itchyny/vim-gitbranch'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'itchyny/lightline.vim'
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
let g:lightline = {
|
||||||
function! VimrcAirlineInit()
|
\ 'colorscheme': 'solarized',
|
||||||
let g:airline_section_c = airline#section#create(['%{bufnr("%")}: %f %r%m'])
|
\ 'active': {
|
||||||
let g:airline_section_z = airline#section#create_right(['%p%%', '%l/%L', '%v'])
|
\ 'left': [
|
||||||
endfunction
|
\ [ 'mode', 'paste' ],
|
||||||
autocmd User AirlineAfterInit call VimrcAirlineInit()
|
\ [ 'gitbranch', 'readonly', 'modified' ],
|
||||||
if !exists('g:airline_symbols')
|
\ [ 'relativepath' ],
|
||||||
let g:airline_symbols = {}
|
\ ],
|
||||||
endif
|
\ 'right': [
|
||||||
let g:airline_left_sep = ' '
|
\ [ 'lineinfo' ],
|
||||||
let g:airline_left_alt_sep = ''
|
\ [ 'percent' ],
|
||||||
let g:airline_right_sep = ' '
|
\ [ 'filetype', 'fileencoding', 'fileformat' ],
|
||||||
let g:airline_right_alt_sep = ''
|
\ ]
|
||||||
let g:airline_symbols.crypt = 'C' " section A
|
\ },
|
||||||
let g:airline_symbols.spell = 'S' " section A
|
\ 'component_function': {
|
||||||
let g:airline_symbols.paste = 'P' " section A
|
\ 'gitbranch': 'gitbranch#name',
|
||||||
let g:airline_symbols.branch = '' " section B
|
\ },
|
||||||
let g:airline_symbols.dirty = ' !' " section B, VCS: file changed
|
\ 'subseparator': {
|
||||||
let g:airline_symbols.notexists = ' ?' " section B, VCS: file not tracked
|
\ 'left': '',
|
||||||
let g:airline_symbols.whitespace = '✗' " section [...]
|
\ 'right': '|',
|
||||||
|
\ },
|
||||||
|
\ }
|
||||||
Plug 'vim-scripts/srec.vim'
|
Plug 'vim-scripts/srec.vim'
|
||||||
highlight link srecStart Comment
|
highlight link srecStart Comment
|
||||||
highlight link srecType Comment
|
highlight link srecType Comment
|
||||||
|
|
Loading…
Add table
Reference in a new issue