Added ignored files
This commit is contained in:
parent
983b6925af
commit
8e52d7716d
1 changed files with 54 additions and 40 deletions
|
@ -14,6 +14,19 @@ for f in split(globpath($HOME . '/.vim/.combo/', '*'), '\n')
|
||||||
endfor
|
endfor
|
||||||
let g:best_combo_all = max(scores)
|
let g:best_combo_all = max(scores)
|
||||||
|
|
||||||
|
" Checking for ignored extensions
|
||||||
|
let ignored = [ 'txt' ]
|
||||||
|
let g:disable_combo = 0
|
||||||
|
for f in ignored
|
||||||
|
if expand("%:e") == f
|
||||||
|
let g:disable_combo = 1
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
|
||||||
|
" If file should be ignored, just set text, else continue with script
|
||||||
|
if g:disable_combo
|
||||||
|
let g:airline_section_b = 'ᛥ -|-|%{g:best_combo_all}'
|
||||||
|
else
|
||||||
" Find best score for current filetype
|
" Find best score for current filetype
|
||||||
if filereadable(g:combo_file)
|
if filereadable(g:combo_file)
|
||||||
let g:best_combo = readfile(g:combo_file)
|
let g:best_combo = readfile(g:combo_file)
|
||||||
|
@ -58,3 +71,4 @@ autocmd InsertLeave * call SaveCombo()
|
||||||
|
|
||||||
" Options for Backspace Cheaters
|
" Options for Backspace Cheaters
|
||||||
" inoremap <BS> <C-o>:let g:combo_counter-=1<CR><BS>
|
" inoremap <BS> <C-o>:let g:combo_counter-=1<CR><BS>
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in a new issue