diff options
| -rw-r--r-- | vim/.vimrc | 8 | 
1 files changed, 4 insertions, 4 deletions
| @@ -123,22 +123,22 @@ endif  map <LocalLeader>s :syn sync fromstart<CR> -function s:enable_automatic_background() +function! s:enable_automatic_background()  	augroup bg  		autocmd bg BufEnter * set bg=dark | call s:detect_terminal_line_border()  		autocmd bg BufEnter *.bib,*.md,*.tex,*.txt set bg=light | call s:detect_terminal_line_border()  	augroup END  endfunction -function s:disable_automatic_background() +function! s:disable_automatic_background()  	augroup bg  		autocmd! bg  	augroup END  	augroup! bg  endfunction -command AutomaticBackgroundEnable call s:enable_automatic_background() -command AutomaticBackgroundDisable call s:disable_automatic_background() +command! AutomaticBackgroundEnable call s:enable_automatic_background() +command! AutomaticBackgroundDisable call s:disable_automatic_background()  call s:enable_automatic_background() | 
