From 7c3e4f500ea537cedccafd430dac4cf018d5ecf3 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 23 Jun 2019 03:34:10 +1200 Subject: Remove :Fortunate call from startup The novelty has already worn off. --- vim/autoload/fortune.vim | 17 +---------------- vim/plugin/fortune.vim | 17 ----------------- 2 files changed, 1 insertion(+), 33 deletions(-) (limited to 'vim') diff --git a/vim/autoload/fortune.vim b/vim/autoload/fortune.vim index 339b1aef..6bbe6b3b 100644 --- a/vim/autoload/fortune.vim +++ b/vim/autoload/fortune.vim @@ -8,19 +8,6 @@ let s:executables = [ \ 'timeout', \] -function! s:Highlight() abort - highlight Fortune - \ term=NONE - \ cterm=NONE ctermfg=244 ctermbg=NONE - \ gui=NONE guifg=#585858 guibg=NONE -endfunction -augroup fortune - autocmd! - autocmd ColorScheme * - \ call s:Highlight() -augroup END -doautocmd fortune ColorScheme - function! fortune#() abort for executable in s:executables @@ -54,8 +41,6 @@ function! fortune#() abort \ 'g', \) - echohl Fortune - echo fortune - echohl None + echomsg fortune endfunction diff --git a/vim/plugin/fortune.vim b/vim/plugin/fortune.vim index b1c4955f..efc03467 100644 --- a/vim/plugin/fortune.vim +++ b/vim/plugin/fortune.vim @@ -1,21 +1,4 @@ command! -bar Fortune \ call fortune#() - nnoremap (Fortune) \ :Fortune - -function! s:FortuneVimEnter() abort - if !argc() && line2byte('$') == -1 - try - Fortune - catch - " Do nothing - endtry - endif -endfunction - -augroup fortune - autocmd! - autocmd VimEnter * - \ call s:FortuneVimEnter() -augroup END -- cgit v1.2.3