http://unix-school.blogspot.in/2011/08/shell-script-to-do-shell-scripting.html
$ cat workon #!/usr/bin/bash if [ ! -f $1 ]; then echo "#!/usr/bin/bash" > $1 fi while [ 1 ]; do vi $1 chmod 755 $1 ./$1 read dummy done in .vimrc map #2 :wq!^M
http://unix-school.blogspot.in/2011/08/shell-script-to-do-shell-scripting.html
$ cat workon #!/usr/bin/bash if [ ! -f $1 ]; then echo "#!/usr/bin/bash" > $1 fi while [ 1 ]; do vi $1 chmod 755 $1 ./$1 read dummy done in .vimrc map #2 :wq!^M