I came across some odd vimscript syntax while reading through the source of the fugitive plugin that I haven't been able to find any documentation on or figure out what it does. It's a user command followed by a space and a colon like so (third line):
function! s:Status() abort
try
Gpedit :
wincmd P
setlocal foldmethod=syntax foldlevel=1
nnoremap <buffer> <silent> q :<C-U>bdelete<CR>
catch /^fugitive:/
return 'echoerr v:errmsg'
endtry
return ''
endfunction
I've never seen this before! I've worked through Steve Losh's Learn Vimscript the Hardway book, read plenty of articles on vimscript, read help often and have never come across this other than here. Anyone know?