diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-22 17:13:03 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-22 17:13:03 +1200 |
commit | bfe7c2d7d23e550709be0883d092b4ef1312149d (patch) | |
tree | 23afe7c274c7dd922c407e45c2d46e9c01e963fe /vim | |
parent | Darken :Fortune display somewhat (diff) | |
download | dotfiles-bfe7c2d7d23e550709be0883d092b4ef1312149d.tar.gz dotfiles-bfe7c2d7d23e550709be0883d092b4ef1312149d.zip |
Separate :try block for fortune function
Vint gets confused by it otherwise.
Diffstat (limited to 'vim')
-rw-r--r-- | vim/plugin/fortune.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vim/plugin/fortune.vim b/vim/plugin/fortune.vim index 9355f1b0..b1c4955f 100644 --- a/vim/plugin/fortune.vim +++ b/vim/plugin/fortune.vim @@ -6,7 +6,11 @@ nnoremap <silent> <Plug>(Fortune) function! s:FortuneVimEnter() abort if !argc() && line2byte('$') == -1 - try | Fortune | catch | endtry + try + Fortune + catch + " Do nothing + endtry endif endfunction |