File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
# TODO: colour messages?
6
6
7
+ pushd " $( dirname " $0 " ) /.."
8
+
7
9
if [ " $EDITOR " != ' vim' ] && [ " $EDITOR " != ' nvim' ]; then
8
10
echo ' ERROR: Set the "EDITOR" environment variable to "vim" or "nvim" and run again.'
9
11
exit 1
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ PREFIX='report_indent'
9
9
10
10
while getopts :p: opt; do
11
11
case " $opt " in
12
- p) PREFIX=" $OPTARG " ;;
13
- h) abort_with_help;;
12
+ p) PREFIX=" $OPTARG " ;;
13
+ h) abort_with_help;;
14
14
esac
15
15
done
16
16
shift $(( OPTIND- 1 ))
@@ -21,12 +21,9 @@ VIMRC="
21
21
set runtimepath^=$( dirname " $0 " ) /../..
22
22
filetype plugin indent on
23
23
syntax on
24
+ let g:clojure_maxlines = 0
24
25
profile start $( echo " ${PREFIX} -$( date +%s.%N) .log" )
25
- profile! file $( dirname " $0 " ) /../../syntax/clojure.vim
26
26
profile! file $( dirname " $0 " ) /../../indent/clojure.vim
27
27
"
28
28
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 "
You can’t perform that action at this time.
0 commit comments