From f83c78d6288fc22cf3ffb035df53afa0a719c93b Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Mon, 5 Nov 2018 17:57:00 -0600
Subject: [PATCH] Vim: Add Lightline

---
 .gitmodules               |  3 +++
 .vim/bundle/lightline.vim |  1 +
 .vimrc                    | 19 +++++++++++++++++++
 3 files changed, 23 insertions(+)
 create mode 160000 .vim/bundle/lightline.vim

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