aboutsummaryrefslogtreecommitdiff
path: root/lint/vim.sh
blob: 43eaf4c817a30c11ca67349855d583eac47890ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Build an argument list of checks to make
set --
for vim in vim/* vim/bundle/* ; do
    [ -e "$vim" ] || continue
    case $vim in

        # Skip third-party plugins
        vim/bundle) ;;
        vim/bundle/repeat) ;;
        vim/bundle/surround) ;;

        # Check everything else
        *) set -- "$@" "$vim" ;;

    esac
done

# Run check
vint -s -- "$@" || exit
printf 'Vim configuration linted successfully.\n'