Blame | Last modification | View Log | RSS feed
# Exemple events that allow the reporter to attach vim configuration files# whenever vim crash is reported.EVENT=collect_vimrc_user component=vim# there has to be a comment here, otherwise# the next line is interpreted as a conditionvimrc=~/.vimrcgvimrc=~/.gvimrcsaved=noneif [ -r $vimrc -a -f $vimrc ]; thencp $vimrc user_vimrc || exit $?saved="$saved, user_vimrc"elseecho "File $vimrc not found"fiif [ -r $gvimrc -a -f $gvimrc ]; thencp $gvimrc user_gvimrc || exit $?saved="$saved, user_gvimrc"elseecho "File $gvimrc not found"fiecho "Elements saved: ${saved#none, }"EVENT=collect_vimrc_system component=vim# there has to be a comment here, otherwise# the next line is interpreted as a conditionvimrc=/etc/vimrcgvimrc=/etc/gvimrcsaved=noneif [ -r $vimrc -a -f $vimrc ]; thencp $vimrc system_vimrc || exit $?saved="$saved, system_vimrc"elseecho "File $vimrc not found"fiif [ -r $gvimrc -a -f $gvimrc ]; thencp $gvimrc system_gvimrc || exit $?saved="$saved, system_gvimrc"elseecho "File $gvimrc not found"fiecho "Elements saved: ${saved#none, }"