7ae059508515
more
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Wed, 17 Jul 2013 14:26:40 -0400 |
parents | 68b8d179f0d4 |
children | 73eda22f3125 |
branches/tags | (none) |
files | .hgignore fish/config.fish vim/vimrc |
Changes
--- 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~
--- 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 {{{
--- 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 <buffer> <localleader>1 yypVr=:redraw<cr> au Filetype markdown nnoremap <buffer> <localleader>2 yypVr-:redraw<cr> au Filetype markdown nnoremap <buffer> <localleader>3 mzI###<space>`zllll <ESC> + + au Filetype markdown nnoremap <buffer> <localleader>p VV:'<,'>!python -m json.tool<cr> + au Filetype markdown vnoremap <buffer> <localleader>p :!python -m json.tool<cr> augroup END " }}}