aboutsummaryrefslogtreecommitdiffstats
path: root/.vim
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-03-16 12:47:09 +0100
committerDavid Runge <dave@sleepmap.de>2017-03-16 12:47:09 +0100
commit9ff189c7de06f63e5c37bc3c70b047e3357b3469 (patch)
treeaebd3e7da4818d3aadc96f090ad3f652a4c05deb /.vim
parent9cc5de91cc7fcc2e2ee9ace951791665ad8c1f4b (diff)
downloaddotfiles-9ff189c7de06f63e5c37bc3c70b047e3357b3469.tar.gz
dotfiles-9ff189c7de06f63e5c37bc3c70b047e3357b3469.tar.bz2
dotfiles-9ff189c7de06f63e5c37bc3c70b047e3357b3469.tar.xz
dotfiles-9ff189c7de06f63e5c37bc3c70b047e3357b3469.zip
.vim/addons-settings.vim: Changing to working colorscheme wombat. Setting active and inactive displays. Adding readonly, modified, fugitive components.
Diffstat (limited to '.vim')
-rw-r--r--.vim/addons-settings.vim13
1 files changed, 10 insertions, 3 deletions
diff --git a/.vim/addons-settings.vim b/.vim/addons-settings.vim
index 2a37d56..69b597a 100644
--- a/.vim/addons-settings.vim
+++ b/.vim/addons-settings.vim
@@ -80,17 +80,24 @@ autocmd BufRead,BufNewFile *.js set ft=javascript syntax=jquery
" ================ lightline settings ================
let g:lightline = {
- \ 'colorscheme': 'solarized',
+ \ 'colorscheme': 'wombat',
\ 'active': {
+ \ 'left': [ [ 'mode', 'paste' ],
+ \ [ 'fugitive', 'readonly', 'filename', 'modified' ] ]
+ \ },
+ \ 'inactive': {
\ 'left': [ [ 'mode' ],
\ [ 'fugitive', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component': {
- \ 'readonly': '%{&readonly?"x":""}',
+ \ 'readonly': '%{&readonly?"r":"rw"}',
+ \ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}',
\ 'fugitive': '%{exists("*fugitive#head")?fugitive#head():""}'
\ },
\ 'component_visible_condition': {
- \ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())'
+ \ 'readonly': '(&filetype!="help"&& &readonly)',
+ \ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())',
+ \ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))'
\ },
\ 'separator': { 'left': '', 'right': '' },
\ 'subseparator': { 'left': '|', 'right': '|' }