Commits

Steve Losh committed 7ae0595

more

Comments (0)

Files changed (3)

 .netrwhist
 *.swp
 *.swo
+*.orig
 tags
 config/bcvi
 *.un~
 
 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
 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 {{{
     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
 
 " }}}