From fc41a020254f6b84da6e19080924132a64d89c78 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 12 Jun 2017 00:03:09 +0200 Subject: Just tidied up a bit --- vimrc-full | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'vimrc-full') diff --git a/vimrc-full b/vimrc-full index 6982e49..cf73b50 100644 --- a/vimrc-full +++ b/vimrc-full @@ -198,7 +198,7 @@ function! MyFiletype() if(exists('b:filetype')) return b:filetype else - return &filetype + return &filetype endfunction autocmd BufEnter * let b:filetype = winwidth(0) > 70 ? (strlen(&filetype) ? WebDevIconsGetFileTypeSymbol() . ':' . &filetype : 'no ft') : '' @@ -218,14 +218,13 @@ let g:lightline = { \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }, \ 'active': { \ 'left': [ [ 'mode', 'paste' ], - \ [ 'gitbranch', 'readonly' ] ], - \ 'right': [ [ 'lineinfo' ], - \ [ 'percent' ], - \ [ 'fileencoding', 'fileformat', 'filetype', 'charvaluehex' ] ], + \ [ 'absolutepath', 'readonly' ] ], + \ 'right': [ [ 'lineinfo', 'percent' ], + \ [ 'spell', 'fileencoding', 'fileformat', 'filetype' ] ], \ }, \ 'tabline': { \ 'left': [ [ 'bufferinfo' ], [ 'bufferbefore', 'buffercurrent', 'bufferafter' ], ], - \ 'right': [ [ 'getcwd', 'close' ] ], + \ 'right': [ [ 'close' ], [ '%{getcwd()}', 'gitbranch'] ], \ }, \ 'component_expand': { \ 'buffercurrent': 'lightline#buffer#buffercurrent2', @@ -240,7 +239,6 @@ let g:lightline = { \ 'filetype': 'MyFiletype', \ 'fileformat': 'MyFileformat', \ 'gitbranch': 'MyBranchname', - \ 'getcwd': 'getcwd', \ }, \ } -- cgit v1.2.3