From bb1df7d5cd2fb1e5b85a803f07d7f55988fc6265 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Tue, 31 Jan 2017 08:35:17 -0500 Subject: [PATCH] Added example editrc file with some useful tools and tag lines --- editrc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 editrc diff --git a/editrc b/editrc new file mode 100644 index 0000000..4ea678a --- /dev/null +++ b/editrc @@ -0,0 +1,22 @@ +# Tag Lines +#------------------------------------------------------------------------------ + +csrc(){ echo -n "Quit Save >lines |bc |uc | Find "; } +src(){ echo -n "Quit Save >lines |bcmt |ucmt | Find "; } +ptext(){ echo -n "Quit Save |fmt >words | Find "; } + +# setup default tags line +export EDITTAGS="$(csrc)" + +# Tool Functions +#------------------------------------------------------------------------------ + +# Word and Line Counts +words(){ wc -w; } +lines(){ wc -l; } + +# Block Comments for C and Scripting Languages +bc(){ sed -e 's/^/\/\//'; } +uc(){ sed -e 's/^\/\///'; } +bcmt(){ sed -e 's/^/#/'; } +ucmt(){ sed -e 's/^#//'; } -- 2.52.0