diff options
author | Max Christian Pohle | 2017-06-12 00:03:09 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-06-12 00:03:09 +0200 |
commit | fc41a020254f6b84da6e19080924132a64d89c78 (patch) | |
tree | 7255920b1be83a159fca4959844d48be9e99ce57 /vimrc-full | |
parent | 455e80e5b96b2abd9c04c96ba4015828bbb7786d (diff) | |
download | vim-karlmarks-fc41a020254f6b84da6e19080924132a64d89c78.tar.bz2 vim-karlmarks-fc41a020254f6b84da6e19080924132a64d89c78.zip |
Just tidied up a bit
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -198,7 +198,7 @@ function! MyFiletype() | |||
198 | if(exists('b:filetype')) | 198 | if(exists('b:filetype')) |
199 | return b:filetype | 199 | return b:filetype |
200 | else | 200 | else |
201 | return &filetype | 201 | return &filetype |
202 | endfunction | 202 | endfunction |
203 | autocmd BufEnter * let b:filetype = winwidth(0) > 70 ? (strlen(&filetype) ? WebDevIconsGetFileTypeSymbol() . ':' . &filetype : 'no ft') : '' | 203 | autocmd BufEnter * let b:filetype = winwidth(0) > 70 ? (strlen(&filetype) ? WebDevIconsGetFileTypeSymbol() . ':' . &filetype : 'no ft') : '' |
204 | 204 | ||
@@ -218,14 +218,13 @@ let g:lightline = { | |||
218 | \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }, | 218 | \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }, |
219 | \ 'active': { | 219 | \ 'active': { |
220 | \ 'left': [ [ 'mode', 'paste' ], | 220 | \ 'left': [ [ 'mode', 'paste' ], |
221 | \ [ 'gitbranch', 'readonly' ] ], | 221 | \ [ 'absolutepath', 'readonly' ] ], |
222 | \ 'right': [ [ 'lineinfo' ], | 222 | \ 'right': [ [ 'lineinfo', 'percent' ], |
223 | \ [ 'percent' ], | 223 | \ [ 'spell', 'fileencoding', 'fileformat', 'filetype' ] ], |
224 | \ [ 'fileencoding', 'fileformat', 'filetype', 'charvaluehex' ] ], | ||
225 | \ }, | 224 | \ }, |
226 | \ 'tabline': { | 225 | \ 'tabline': { |
227 | \ 'left': [ [ 'bufferinfo' ], [ 'bufferbefore', 'buffercurrent', 'bufferafter' ], ], | 226 | \ 'left': [ [ 'bufferinfo' ], [ 'bufferbefore', 'buffercurrent', 'bufferafter' ], ], |
228 | \ 'right': [ [ 'getcwd', 'close' ] ], | 227 | \ 'right': [ [ 'close' ], [ '%{getcwd()}', 'gitbranch'] ], |
229 | \ }, | 228 | \ }, |
230 | \ 'component_expand': { | 229 | \ 'component_expand': { |
231 | \ 'buffercurrent': 'lightline#buffer#buffercurrent2', | 230 | \ 'buffercurrent': 'lightline#buffer#buffercurrent2', |
@@ -240,7 +239,6 @@ let g:lightline = { | |||
240 | \ 'filetype': 'MyFiletype', | 239 | \ 'filetype': 'MyFiletype', |
241 | \ 'fileformat': 'MyFileformat', | 240 | \ 'fileformat': 'MyFileformat', |
242 | \ 'gitbranch': 'MyBranchname', | 241 | \ 'gitbranch': 'MyBranchname', |
243 | \ 'getcwd': 'getcwd', | ||
244 | \ }, | 242 | \ }, |
245 | \ } | 243 | \ } |
246 | 244 | ||