aboutsummaryrefslogtreecommitdiff
path: root/bin/exm.sh
blob: c25a611b2b2c636e8c3a1487082f94ed59ca626d (plain) (blame)
1
2
3
4
5
6
7
8
# Prevent Vim's ex(1) implementation from clearing the screen
if [ -t 0 ] ; then

    # Lie to Vim; tell it it's a dumb terminal, and that its required "cm"
    # feature is invoked with a carriage return.
    set -- -T dumb --cmd "$(printf 'set t_cm=\r')" "$@"
fi
exec ex "$@"