From bfe7c2d7d23e550709be0883d092b4ef1312149d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 22 Jun 2019 17:13:03 +1200 Subject: Separate :try block for fortune function Vint gets confused by it otherwise. --- vim/plugin/fortune.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vim') 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 (Fortune) function! s:FortuneVimEnter() abort if !argc() && line2byte('$') == -1 - try | Fortune | catch | endtry + try + Fortune + catch + " Do nothing + endtry endif endfunction -- cgit v1.2.3