Skip to content

Commit aae9ae8

Browse files
committedJan 26, 2025·
Move indenttime script to dev folder as time-indent
1 parent 1ea333a commit aae9ae8

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed
 

Diff for: ‎dev/do/test-indent

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
# TODO: colour messages?
66

7+
pushd "$(dirname "$0")/.."
8+
79
if [ "$EDITOR" != 'vim' ] && [ "$EDITOR" != 'nvim' ]; then
810
echo 'ERROR: Set the "EDITOR" environment variable to "vim" or "nvim" and run again.'
911
exit 1

Diff for: ‎clj/bin/indenttime renamed to ‎dev/do/time-indent

+4-7
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ PREFIX='report_indent'
99

1010
while getopts :p: opt; do
1111
case "$opt" in
12-
p) PREFIX="$OPTARG";;
13-
h) abort_with_help;;
12+
p) PREFIX="$OPTARG";;
13+
h) abort_with_help;;
1414
esac
1515
done
1616
shift $((OPTIND-1))
@@ -21,12 +21,9 @@ VIMRC="
2121
set runtimepath^=$(dirname "$0")/../..
2222
filetype plugin indent on
2323
syntax on
24+
let g:clojure_maxlines = 0
2425
profile start $(echo "${PREFIX}-$(date +%s.%N).log")
25-
profile! file $(dirname "$0")/../../syntax/clojure.vim
2626
profile! file $(dirname "$0")/../../indent/clojure.vim
2727
"
2828

29-
exec vim -N -u <(echo "$VIMRC") \
30-
-c 'call feedkeys("gg=G")' \
31-
-c 'call feedkeys(":silent quitall!\<CR>")' \
32-
"$1"
29+
exec vim --clean -NXnu <(echo "$VIMRC") '+normal! gg=G' '+quitall!' "$1"

0 commit comments

Comments
 (0)
Please sign in to comment.