Debian Codegraph @

scripts/vim/pl

raw symbols SCIP
1 #!/bin/sh
2
3 # Copyright (c) 2006 Don Stewart - http://www.cse.unsw.edu.au/~dons
4 # GPL version 2 or later (see http://www.gnu.org/copyleft/gpl.html)
5
6 #
7 # A shell script to be called from vim, to automatically refactor a code
8 # fragment.
9 #
10 # Select the expression you want to refactor, on a line of its own, and
11 # in vim, type:
12 # !!pl
13 #
14 # (Assuming your lambdabot is installed in $HOME/lambdabot, it will
15 # replace the expression with the pointfree version
16 #
17
18 DECL=`cat`
19 cd $HOME/lambdabot/
20 echo "pl $DECL" | ./lambdabot 2> /dev/null | sed '$d;/Irc/d;s/lambdabot> //'
21