aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-06-12 00:03:09 +0200
committerMax Christian Pohle2017-06-12 00:03:09 +0200
commitfc41a020254f6b84da6e19080924132a64d89c78 (patch)
tree7255920b1be83a159fca4959844d48be9e99ce57
parent455e80e5b96b2abd9c04c96ba4015828bbb7786d (diff)
downloadvim-fc41a020254f6b84da6e19080924132a64d89c78.tar.bz2
vim-fc41a020254f6b84da6e19080924132a64d89c78.zip
Just tidied up a bit
-rw-r--r--vimrc-full12
1 files changed, 5 insertions, 7 deletions
diff --git a/vimrc-full b/vimrc-full
index 6982e49..cf73b50 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -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
202endfunction 202endfunction
203autocmd BufEnter * let b:filetype = winwidth(0) > 70 ? (strlen(&filetype) ? WebDevIconsGetFileTypeSymbol() . ':' . &filetype : 'no ft') : '' 203autocmd 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
..