vim: improve status line
This commit is contained in:
parent
3012a2757a
commit
083ac8d90e
1 changed files with 17 additions and 13 deletions
|
@ -92,24 +92,28 @@ call plug#begin('$XDG_DATA_HOME/nvim/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 'itchyny/vim-gitbranch'
|
|
||||||
Plug 'itchyny/lightline.vim'
|
Plug 'itchyny/lightline.vim'
|
||||||
let g:lightline = {
|
let g:lightline = {
|
||||||
\ 'colorscheme': 'solarized',
|
\ 'colorscheme': 'solarized',
|
||||||
\ 'active': {
|
\ 'active': {
|
||||||
\ 'left': [
|
\ 'left': [['mode','paste'],[],['path']],
|
||||||
\ [ 'mode', 'paste' ],
|
\ 'right': [['percent'],['lineinfo'],['ro','modified','ft','fenc','ff']],
|
||||||
\ [ 'readonly', 'modified' ],
|
|
||||||
\ [ 'relativepath' ],
|
|
||||||
\ ],
|
|
||||||
\ 'right': [
|
|
||||||
\ [ 'lineinfo' ],
|
|
||||||
\ [ 'percent_total' ],
|
|
||||||
\ [ 'filetype', 'fileencoding', 'fileformat' ],
|
|
||||||
\ ]
|
|
||||||
\ },
|
\ },
|
||||||
\ 'component': { 'percent_total': '%3p%%×%L' },
|
\ 'inactive': {
|
||||||
\ 'subseparator': { 'left': '', 'right': '|' },
|
\ 'left': [['paste','ro','modified'],['path']],
|
||||||
|
\ 'right': [['percent'],['lineinfo'],['ro','modified']],
|
||||||
|
\ },
|
||||||
|
\ 'component': {
|
||||||
|
\ 'fenc': '%{&fenc!=#""?&fenc:&enc}',
|
||||||
|
\ 'ff': '%{&ff}',
|
||||||
|
\ 'ft': '%{&ft!=#""?&ft:"?"}',
|
||||||
|
\ 'modified': '%m',
|
||||||
|
\ 'paste': '%{&paste?"PASTE":""}',
|
||||||
|
\ 'path': '%f',
|
||||||
|
\ 'percent': '%3p%%×%L',
|
||||||
|
\ 'ro': '%r',
|
||||||
|
\ },
|
||||||
|
\ 'subseparator': { 'left': '', 'right': '' },
|
||||||
\ }
|
\ }
|
||||||
Plug 'vim-scripts/srec.vim'
|
Plug 'vim-scripts/srec.vim'
|
||||||
highlight link srecStart Comment
|
highlight link srecStart Comment
|
||||||
|
|
Loading…
Add table
Reference in a new issue