aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-22 17:13:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-22 17:13:03 +1200
commitbfe7c2d7d23e550709be0883d092b4ef1312149d (patch)
tree23afe7c274c7dd922c407e45c2d46e9c01e963fe
parentDarken :Fortune display somewhat (diff)
downloaddotfiles-bfe7c2d7d23e550709be0883d092b4ef1312149d.tar.gz
dotfiles-bfe7c2d7d23e550709be0883d092b4ef1312149d.zip
Separate :try block for fortune function
Vint gets confused by it otherwise.
-rw-r--r--vim/plugin/fortune.vim6
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