diff --git a/.gitmodules b/.gitmodules index 387e3445..fcce3215 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/.vim/bundle/lightline.vim b/.vim/bundle/lightline.vim new file mode 160000 index 00000000..47765c78 --- /dev/null +++ b/.vim/bundle/lightline.vim @@ -0,0 +1 @@ +Subproject commit 47765c787ddc981c2eab6105ade84067d164893c diff --git a/.vimrc b/.vimrc index 80807547..092a2eb9 100644 --- a/.vimrc +++ b/.vimrc @@ -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