From: Michael D. Lowis Date: Tue, 31 Jan 2017 13:35:17 +0000 (-0500) Subject: Added example editrc file with some useful tools and tag lines X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=bb1df7d5cd2fb1e5b85a803f07d7f55988fc6265;p=projs%2Ftide.git Added example editrc file with some useful tools and tag lines --- 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/^#//'; }