# HG changeset patch # User Steve Losh # Date 1374085600 14400 # Node ID 7ae0595085159f7d11a58cdb0eef359f32fb1b51 # Parent 68b8d179f0d44cc0284bd82dd5190da4d69aed02 more diff -r 68b8d179f0d4 -r 7ae059508515 .hgignore --- a/.hgignore Mon Jul 15 15:52:00 2013 -0400 +++ b/.hgignore Wed Jul 17 14:26:40 2013 -0400 @@ -5,6 +5,7 @@ .netrwhist *.swp *.swo +*.orig tags config/bcvi *.un~ diff -r 68b8d179f0d4 -r 7ae059508515 fish/config.fish --- a/fish/config.fish Mon Jul 15 15:52:00 2013 -0400 +++ b/fish/config.fish Wed Jul 17 14:26:40 2013 -0400 @@ -26,6 +26,18 @@ function sjoin -d "Join input lines into a single line with spaces"; tr '\n' ' '; end +function lstrip -d "Strip whitespace from the left of each line" + sed -e 's/^[ \t]*//' +end + +function rstrip -d "Strip whitespace from the right of each line" + sed -e 's/[ \t]*$//' +end + +function lrstrip -d "Strip whitespace from both ends of each line" + lstrip | rstrip +end + function pj python -m json.tool | pygmentize -l json end @@ -209,6 +221,7 @@ set -g -x DRIP_SHUTDOWN 30 set -g -x MAVEN_OPTS "-Xmx512M -XX:MaxPermSize=512M" +set -g -x _JAVA_OPTIONS "-Djava.awt.headless=true" # }}} # Python variables {{{ diff -r 68b8d179f0d4 -r 7ae059508515 vim/vimrc --- a/vim/vimrc Mon Jul 15 15:52:00 2013 -0400 +++ b/vim/vimrc Wed Jul 17 14:26:40 2013 -0400 @@ -908,6 +908,9 @@ au Filetype markdown nnoremap 1 yypVr=:redraw au Filetype markdown nnoremap 2 yypVr-:redraw au Filetype markdown nnoremap 3 mzI###`zllll + + au Filetype markdown nnoremap p VV:'<,'>!python -m json.tool + au Filetype markdown vnoremap p :!python -m json.tool augroup END " }}}