Commits

Steve Losh  committed ea3fd4a Merge

Merge.

  • Participants
  • Parent commits 1653b47, 73eda22

Comments (0)

Files changed (4)

 .netrwhist
 *.swp
 *.swo
+*.orig
 tags
 config/bcvi
 *.un~
 dc349bb7d30f713d770fc1fa0fe209e6aab82dc8 vim/bundle/commentary
 c1646e3c28d75bcc834af4836f4c6e12296ba891 vim/bundle/ctrlp
 ffbd5eb50c9daf67657b87fd767d1801ac9a15a7 vim/bundle/dispatch
-4f6b8e52376dc9973ca0478b750578b681681b55 vim/bundle/fireplace
+b96ccf7441ada22d764af8223b61f18896d82dc9 vim/bundle/fireplace
 cff78c3ab4605d490e6be8d8af02f1e7efd25c95 vim/bundle/fugitive
 eb9fc8676b8959c3c2c95bf6b6e8f0f44317c5c0 vim/bundle/gundo
 34b407d2344a3c2a94b56e9d443e18e01e8544d9 vim/bundle/html5

File fish/config.fish

 
 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
 
 " }}}