aef2d0771fe4

oh hey look more
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 18 Mar 2014 19:17:11 -0400
parents 7d8ecc02426d
children 15fb2a3ae7b6
branches/tags (none)
files bash_profile vim/vimrc

Changes

--- 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'
--- 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 <leader>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<cr><esc>^mwgk:silent! s/\v +$//<cr>:noh<cr>`w