We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4bd9f0 commit 6b18b4eCopy full SHA for 6b18b4e
clj/bin/indenttime
@@ -0,0 +1,32 @@
1
+#!/usr/bin/env bash
2
+
3
+abort_with_help() {
4
+ echo "usage: $(basename "$0") [-p PREFIX] file.clj"
5
+ exit 1
6
+}
7
8
+PREFIX='report_indent'
9
10
+while getopts :p: opt; do
11
+ case "$opt" in
12
+ p) PREFIX="$OPTARG";;
13
+ h) abort_with_help;;
14
+ esac
15
+done
16
+shift $((OPTIND-1))
17
18
+(($# == 1)) || abort_with_help
19
20
+VIMRC="
21
+set runtimepath^=$(dirname "$0")/../..
22
+filetype plugin indent on
23
+syntax on
24
+profile start $(echo "${PREFIX}-$(date +%s.%N).log")
25
+profile! file $(dirname "$0")/../../syntax/clojure.vim
26
+profile! file $(dirname "$0")/../../indent/clojure.vim
27
+"
28
29
+exec vim -N -u <(echo "$VIMRC") \
30
+ -c 'call feedkeys("gg=G")' \
31
+ -c 'call feedkeys(":silent quitall!\<CR>")' \
32
+ "$1"
0 commit comments