Vim: Add Lightline

This commit is contained in:
Salt 2018-11-05 17:57:00 -06:00
parent 01c51393c6
commit f83c78d628
3 changed files with 23 additions and 0 deletions

3
.gitmodules vendored
View File

@ -25,3 +25,6 @@
[submodule ".concession"]
path = .concession
url = git@gitlab.com:rehashedsalt/concession
[submodule ".vim/bundle/lightline.vim"]
path = .vim/bundle/lightline.vim
url = https://github.com/itchyny/lightline.vim

@ -0,0 +1 @@
Subproject commit 47765c787ddc981c2eab6105ade84067d164893c

19
.vimrc
View File

@ -5,6 +5,25 @@ colorscheme gruvbox
syntax on
filetype plugin indent on
" Lightline
set noshowmode
let g:lightline = {
\ 'active': {
\ 'left': [
\ [ 'mode', 'paste' ],
\ [ 'readonly', 'filename', 'modified' ],
\ [ 'charvaluehex' ]
\ ],
\ 'right': [
\ [ 'lineinfo' ],
\ [ 'percent' ],
\ [ 'fileformat', 'fileencoding', 'filetype' ]
\ ]
\ },
\ 'component': {
\ 'charvaluehex': 'char: 0x%B'
\ },
\}
" Automatically read when a file is changed outside of Vim
set autoread