vim: tweak statusline

This commit is contained in:
Fernando Schauenburg 2021-07-28 01:06:19 +02:00
parent be3e854f7e
commit 14a8260771

View file

@ -35,7 +35,7 @@ set shiftwidth=0 " use 'tabstop' spaces for (auto)indent step
set shortmess+=I " don't show the intro message when starting Vim set shortmess+=I " don't show the intro message when starting Vim
set showbreak="-> " " prefix for wrapped lines set showbreak="-> " " prefix for wrapped lines
set showmatch " briefly jump to matching bracket if insert one set showmatch " briefly jump to matching bracket if insert one
set noshowmode " don't show mode (using airline instead) set noshowmode " don't show mode (shown in statusline instead)
set sidescrolloff=3 " min. number of columns to left and right of cursor set sidescrolloff=3 " min. number of columns to left and right of cursor
set smartcase " case sensitive search if pattern has uppercase chars set smartcase " case sensitive search if pattern has uppercase chars
set smartindent " use smart autoindenting set smartindent " use smart autoindenting
@ -99,22 +99,17 @@ call plug#begin('$XDG_DATA_HOME/nvim/plugged')
\ 'active': { \ 'active': {
\ 'left': [ \ 'left': [
\ [ 'mode', 'paste' ], \ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'modified' ], \ [ 'readonly', 'modified' ],
\ [ 'relativepath' ], \ [ 'relativepath' ],
\ ], \ ],
\ 'right': [ \ 'right': [
\ [ 'lineinfo' ], \ [ 'lineinfo' ],
\ [ 'percent' ], \ [ 'percent_total' ],
\ [ 'filetype', 'fileencoding', 'fileformat' ], \ [ 'filetype', 'fileencoding', 'fileformat' ],
\ ] \ ]
\ }, \ },
\ 'component_function': { \ 'component': { 'percent_total': '%3p%%×%L' },
\ 'gitbranch': 'gitbranch#name', \ 'subseparator': { 'left': '', 'right': '|' },
\ },
\ 'subseparator': {
\ 'left': '',
\ 'right': '|',
\ },
\ } \ }
Plug 'vim-scripts/srec.vim' Plug 'vim-scripts/srec.vim'
highlight link srecStart Comment highlight link srecStart Comment