From 31d645b15bfde885ada913e5dff34e816fe316f4 Mon Sep 17 00:00:00 2001 From: NerdyPepper Date: Wed, 31 Jul 2019 21:24:59 +0530 Subject: add better annotations --- docs/index.html | 3 ++- posts/bash_harder_with_vim.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 9fbc18b..37a353b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -69,7 +69,8 @@ echo "$1" | sed -E -e "s/\..+$//g" -e "s/_(.)/ \u\1/g&
syntax off            # previously run commands
 edit index.html       # in a buffer!
 w | so %
-echo "new_post.md" | sed -E -e "s/\..+$//g"  -e "s/_(.)/ \u\1/g" -e "s/^(.)/\u\1/g"
+!echo "new_post.md" | sed -E -e "s/\..+$//g"  --snip--
+^--- note the use of '!'
 
  • Hit enter with the cursor on the line containing your command!

    diff --git a/posts/bash_harder_with_vim.md b/posts/bash_harder_with_vim.md index c31e36c..aef5353 100644 --- a/posts/bash_harder_with_vim.md +++ b/posts/bash_harder_with_vim.md @@ -44,7 +44,8 @@ q:p syntax off # previously run commands edit index.html # in a buffer! w | so % -echo "new_post.md" | sed -E -e "s/\..+$//g" -e "s/_(.)/ \u\1/g" -e "s/^(.)/\u\1/g" +!echo "new_post.md" | sed -E -e "s/\..+$//g" --snip-- +^--- note the use of '!' ``` - Hit enter with the cursor on the line containing your command! -- cgit v1.2.3