File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 44
55# TODO: colour messages?
66
7+ pushd " $( dirname " $0 " ) /.."
8+
79if [ " $EDITOR " != ' vim' ] && [ " $EDITOR " != ' nvim' ]; then
810 echo ' ERROR: Set the "EDITOR" environment variable to "vim" or "nvim" and run again.'
911 exit 1
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ PREFIX='report_indent'
99
1010while 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
1515done
1616shift $(( OPTIND- 1 ))
@@ -21,12 +21,9 @@ VIMRC="
2121set runtimepath^=$( dirname " $0 " ) /../..
2222filetype plugin indent on
2323syntax on
24+ let g:clojure_maxlines = 0
2425profile start $( echo " ${PREFIX} -$( date +%s.%N) .log" )
25- profile! file $( dirname " $0 " ) /../../syntax/clojure.vim
2626profile! 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 "
You can’t perform that action at this time.
0 commit comments