# HG changeset patch # User Steve Losh # Date 1395184631 14400 # Node ID aef2d0771fe428a65324c3cd2ad6a222ca8efa0f # Parent 7d8ecc02426d91036e57a3b217fa6bb94281bcc4 oh hey look more diff -r 7d8ecc02426d -r aef2d0771fe4 bash_profile --- a/bash_profile Mon Mar 17 12:39:06 2014 -0400 +++ b/bash_profile Tue Mar 18 19:17:11 2014 -0400 @@ -19,6 +19,7 @@ alias h='hg' alias g='git' +alias pj='python -m json.tool' alias pbc='pbcopy' alias pbp='pbpaste' alias pbpb='pbp | pb' diff -r 7d8ecc02426d -r aef2d0771fe4 vim/vimrc --- a/vim/vimrc Mon Mar 17 12:39:06 2014 -0400 +++ b/vim/vimrc Tue Mar 18 19:17:11 2014 -0400 @@ -386,6 +386,12 @@ " Keep the cursor in place while joining lines nnoremap J mzJ`z +" Join an entire paragraph. +" +" Useful for writing GitHub comments in actual Markdown and then translating it +" to their bastardized version of Markdown. +nnoremap J mzvipJ`z + " Split line (sister to [J]oin lines) " The normal use of S is covered by cc, so don't worry about shadowing it. nnoremap S i^mwgk:silent! s/\v +$//:noh`w