# HG changeset patch # User Steve Losh # Date 1453391458 0 # Node ID 8a1376b77b80d8302c312207091051cb1bc36113 # Parent 83aac563abc9d0116894ac61db2c63c9a05f72be its a bird its a plane no its just a plane actually diff -r 83aac563abc9 -r 8a1376b77b80 .hgsubstate --- a/.hgsubstate Wed Dec 09 17:49:02 2015 +0000 +++ b/.hgsubstate Thu Jan 21 15:50:58 2016 +0000 @@ -17,7 +17,7 @@ 935a2cccd3065b1322fb2235285d42728600afdf vim/bundle/fugitive 6e9f52a160e3d15060848a8f453bd1b5bfa70db2 vim/bundle/gnupg 0d57b080f9fae8573c688b6679b31eb1666edc4c vim/bundle/gnuplot -1be6a45c04c830b9b1841b4510a5651c5c2eafdb vim/bundle/gundo +6577ac10e3249d48576a44732dd765650273eef1 vim/bundle/gundo 34b407d2344a3c2a94b56e9d443e18e01e8544d9 vim/bundle/html5 78fffa609b3e6b84ef01ee4c9aba6d7435d7b18e vim/bundle/indent-object d1f19733ff5594cf5d6fb498fc599f02326860a6 vim/bundle/jack diff -r 83aac563abc9 -r 8a1376b77b80 bin/lein --- a/bin/lein Wed Dec 09 17:49:02 2015 +0000 +++ b/bin/lein Thu Jan 21 15:50:58 2016 +0000 @@ -4,7 +4,7 @@ # somewhere on your $PATH, like ~/bin. The rest of Leiningen will be # installed upon first run into the ~/.lein/self-installs directory. -export LEIN_VERSION="2.5.2" +export LEIN_VERSION="2.5.3" case $LEIN_VERSION in *SNAPSHOT) SNAPSHOT="YES" ;; @@ -83,7 +83,19 @@ fi } -if [ "$(id -u)" -eq 0 ] && [ "$LEIN_ROOT" = "" ]; then +function check_root { + local -i user_id + # Thank you for the complexity, Solaris + if [ `uname` = "SunOS" -a -x /usr/xpg4/bin/id ]; then + user_id=$(/usr/xpg4/bin/id -u 2>/dev/null || echo 0) + else + user_id=$(id -u 2>/dev/null || echo 0) + fi + [ $user_id -eq 0 -a "$LEIN_ROOT" = "" ] && return 0 + return 1 +} + +if check_root; then echo "WARNING: You're currently running as root; probably by accident." echo "Press control-C to abort or Enter to continue as root." echo "Set LEIN_ROOT to disable this warning." @@ -253,7 +265,7 @@ fi if [ $SNAPSHOT = "YES" ]; then echo "The upgrade task is only meant for stable releases." - echo "See the \"Hacking\" section of the README." + echo "See the \"Bootstrapping\" section of CONTRIBUTING.md." exit 1 fi if [ ! -w "$SCRIPT" ]; then diff -r 83aac563abc9 -r 8a1376b77b80 ffignore --- a/ffignore Wed Dec 09 17:49:02 2015 +0000 +++ b/ffignore Thu Jan 21 15:50:58 2016 +0000 @@ -1,10 +1,8 @@ syntax:literal .DS_Store -tags -tags.bak cookbook banner.txt syntax:regex -^./target$ -^./\w+-(client|wire|service)/target$ +^tags$ +^tags.bak$ diff -r 83aac563abc9 -r 8a1376b77b80 hgrc --- a/hgrc Wed Dec 09 17:49:02 2015 +0000 +++ b/hgrc Thu Jan 21 15:50:58 2016 +0000 @@ -177,6 +177,8 @@ o, = outgoing --graph --style=$HOME/lib/dotfiles/mercurial/templates/map-cmdline.sglog i, = incoming --graph --style=$HOME/lib/dotfiles/mercurial/templates/map-cmdline.sglog +# Incoming and Outgoing all in one +inout = !figlet incoming | lolcat; "$HG" incoming $@; figlet outgoing | lolcat; echo; "$HG" outgoing $@ # hg n . -- show a summary of rev . without diff. # hg show . -- show a summary of rev . with diff. diff -r 83aac563abc9 -r 8a1376b77b80 vim/after/plugin/paredit.vim --- a/vim/after/plugin/paredit.vim Wed Dec 09 17:49:02 2015 +0000 +++ b/vim/after/plugin/paredit.vim Thu Jan 21 15:50:58 2016 +0000 @@ -2,8 +2,8 @@ au! " Quit fucking with my split-line mapping, paredit. - au Filetype lisp nnoremap S i^mwgk:silent! s/\v +$//:noh`w + au Filetype lisp,clojure,gdl nnoremap S i^mwgk:silent! s/\v +$//:noh`w " Also quit fucking with my save file mapping. - au FileType lisp nunmap s + au FileType lisp,clojure,gdl nunmap s augroup END diff -r 83aac563abc9 -r 8a1376b77b80 vim/after/plugin/surround-mapping.vim --- a/vim/after/plugin/surround-mapping.vim Wed Dec 09 17:49:02 2015 +0000 +++ b/vim/after/plugin/surround-mapping.vim Thu Jan 21 15:50:58 2016 +0000 @@ -1,5 +1,2 @@ " Use the old surround.vim key. I can't deal with the new one. xmap s VSurround - -" Use S for something useful. -vnoremap S :s/ diff -r 83aac563abc9 -r 8a1376b77b80 vim/bundle/ooze/plugin/ooze.vim --- a/vim/bundle/ooze/plugin/ooze.vim Wed Dec 09 17:49:02 2015 +0000 +++ b/vim/bundle/ooze/plugin/ooze.vim Thu Jan 21 15:50:58 2016 +0000 @@ -1,4 +1,11 @@ " vim: set foldmethod=indent +" TODO: +" Unfuck folding +" Disassembly mapping +" in-package horseshit +" error handling +" multi-packet messages +" function! s:IsString(a) return type(a:a) == 1 @@ -47,6 +54,11 @@ let output .= s:GetString(a:msg, 'stdout', "") let output .= s:GetString(a:msg, 'stderr', "") let output .= s:GetString(a:msg, 'value', "") + + let output .= s:GetString(a:msg, 'error', "\n\n") + let output .= s:GetString(a:msg, 'original', "\n\n") + let output .= s:GetString(a:msg, 'backtrace', "\n") + let output .= s:GetString(a:msg, 'function-arglist', "\n\n") let output .= s:GetString(a:msg, 'function-docstring', "\n") if output != '' @@ -161,8 +173,9 @@ nnoremap f mzvab:call OozeEvalSelection()`z nnoremap D :call OozeDocument(input("? ")) - nnoremap d mzviw:call OozeDocumentSelection()`z + " nnoremap d mzviw:call OozeDocumentSelection()`z inoremap mzbviw:call OozeDocumentSelection()`za + nnoremap M mzviw:call OozeDocumentSelection()`z nnoremap M :call OozeMacroexpand(input("? ")) nnoremap m mzvab:call OozeMacroexpandSelection()`z diff -r 83aac563abc9 -r 8a1376b77b80 vim/vimrc --- a/vim/vimrc Wed Dec 09 17:49:02 2015 +0000 +++ b/vim/vimrc Thu Jan 21 15:50:58 2016 +0000 @@ -309,15 +309,28 @@ " For some reason Vim no longer wants to talk to the OS X pasteboard through "*. " Computers are bullshit. function! g:FuckingCopyTheTextPlease() + let view = winsaveview() let old_z = @z normal! gv"zy call system('pbcopy', @z) let @z = old_z + call winrestview(view) endfunction + +function! g:FuckingCopyAllTheTextPlease() + let view = winsaveview() + let old_z = @z + normal! ggVG"zy + call system('pbcopy', @z) + let @z = old_z + call winrestview(view) +endfunction + noremap p "*p " noremap p mz:r!pbpaste`z vnoremap y :call g:FuckingCopyTheTextPlease() nnoremap y VV:call g:FuckingCopyTheTextPlease() +nnoremap Y :call g:FuckingCopyAllTheTextPlease() " Reselect last-pasted text nnoremap gp `[v`] @@ -413,6 +426,7 @@ " Substitute nnoremap :%s/ +vnoremap :s/ " HTML tag closing inoremap :call InsertCloseTag()a @@ -711,6 +725,16 @@ augroup ft_c au! au FileType c setlocal foldmethod=marker foldmarker={,} + au FileType c setlocal ts=8 sts=8 sw=8 noexpandtab +augroup END + +" }}} +" C++ {{{ + +augroup ft_cpp + au! + au FileType cpp setlocal foldmethod=marker foldmarker={,} + au FileType cpp setlocal ts=8 sts=8 sw=8 noexpandtab augroup END " }}} @@ -782,7 +806,7 @@ au FileType clojure setlocal report=100000 " Things that should be indented 2-spaced - au FileType clojure setlocal lispwords+=when-found,defform,when-valid,try + au FileType clojure setlocal lispwords+=when-found,defform,when-valid,try,while-let au FileType clojure RainbowParenthesesActivate au syntax clojure RainbowParenthesesLoadRound @@ -841,18 +865,22 @@ hi def link replResult Debug endfunction "}}} function! SetLispWords() "{{{ - if exists("g:did_set_lisp_words") + setlocal isk+=. + + if exists("b:did_set_lisp_words") return endif - let g:did_set_lisp_words = 1 - - set lispwords+=switch - set lispwords+=cswitch - set lispwords+=eswitch - set lispwords+=when-let - set lispwords+=optima:match - set lispwords+=match + let b:did_set_lisp_words = 1 + + setlocal lispwords+=switch + setlocal lispwords+=cswitch + setlocal lispwords+=eswitch + setlocal lispwords+=when-let + setlocal lispwords+=optima:match + setlocal lispwords+=match + setlocal lispwords+=match + setlocal lispwords+=.let* endfunction "}}} function! SendLispForm() "{{{ let view = winsaveview() @@ -925,34 +953,34 @@ " \m - macroexpand form [m]acroexpand " \M - macroexpand prompt [m]acroexpand - au FileType lisp nnoremap o :call OpenLispRepl() - - " Send the current form to the REPL - au FileType lisp nnoremap f :call SendLispForm() - - " Send the current top-level form to the REPL - au FileType lisp nnoremap e :call SendToplevelLispForm() - - " Send the entire buffer to the REPL ([r]eload) - au FileType lisp nnoremap r :call SendLispBuffer() - - " Clear the REPL - au FileType lisp nnoremap c :call NeoReplSendRaw(" ") - - " Describe symbol under the cursor - au FileType lisp nnoremap d :call DescribeLispSymbol() - - " Describe the last thing we typed - au FileType lisp inoremap mzb:call DescribeLispSymbol()`za - - " Describe prompt - au FileType lisp nnoremap D :call DescribeLispPrompt() - - " Macroexpand form - au FileType lisp nnoremap m :call MacroexpandLispForm() - - " Macroexpand prompt - au FileType lisp nnoremap M :call MacroexpandLispPrompt() + " au FileType lisp nnoremap o :call OpenLispRepl() + + " " Send the current form to the REPL + " au FileType lisp nnoremap f :call SendLispForm() + + " " Send the current top-level form to the REPL + " au FileType lisp nnoremap e :call SendToplevelLispForm() + + " " Send the entire buffer to the REPL ([r]eload) + " au FileType lisp nnoremap r :call SendLispBuffer() + + " " Clear the REPL + " au FileType lisp nnoremap c :call NeoReplSendRaw(" ") + + " " Describe symbol under the cursor + " au FileType lisp nnoremap d :call DescribeLispSymbol() + + " " Describe the last thing we typed + " au FileType lisp inoremap mzb:call DescribeLispSymbol()`za + + " " Describe prompt + " au FileType lisp nnoremap D :call DescribeLispPrompt() + + " " Macroexpand form + " au FileType lisp nnoremap m :call MacroexpandLispForm() + + " " Macroexpand prompt + " au FileType lisp nnoremap M :call MacroexpandLispPrompt() au FileType lisp RainbowParenthesesActivate au syntax lisp RainbowParenthesesLoadRound @@ -1125,6 +1153,44 @@ augroup END " }}} +" GDL {{{ + +augroup ft_gdl + au! + + au FileType gdl setlocal foldmethod=marker foldmarker={{{,}}} lisp iskeyword+=? + + au FileType gdl RainbowParenthesesActivate + au syntax gdl RainbowParenthesesLoadRound + + au FileType gdl call PareditInitBuffer() + + au FileType gdl noremap () :call PareditWrap("(", ")") + au FileType gdl noremap )( :call PareditSplice() + au FileType gdl noremap (( :call PareditMoveLeft() + au FileType gdl noremap )) :call PareditMoveRight() + au FileType gdl noremap (j :call PareditJoin() + au FileType gdl noremap (s :call PareditSplit() + au FileType gdl noremap )j :call PareditJoin() + au FileType gdl noremap )s :call PareditSplit() + au FileType gdl noremap [[ :call PareditSmartJumpOpening(0) + au FileType gdl noremap ]] :call PareditSmartJumpClosing(0) + " )) +augroup END + +" }}} +" GLSL {{{ + +augroup ft_glsl + au! + + au BufNewFile,BufRead *.shader setlocal filetype=glsl + + au FileType glsl setlocal foldmethod=marker foldmarker={,} + au FileType glsl setlocal ts=8 sts=8 sw=8 noexpandtab +augroup END + +" }}} " gnuplot {{{ function! OpenGnuplotRepl() "{{{ @@ -1820,6 +1886,7 @@ au! au FileType htmldjango setlocal commentstring={#\ %s\ #} au FileType clojurescript setlocal commentstring=;\ %s + au FileType gdl setlocal commentstring=;\ %s au FileType lisp setlocal commentstring=;\ %s au FileType puppet setlocal commentstring=#\ %s au FileType fish setlocal commentstring=#\ %s @@ -1881,6 +1948,46 @@ nnoremap m :Dispatch " }}} +" Fireplace {{{ + +let g:fireplace_no_maps = 1 + +augroup map_good_fireplace_keys + au! + + " [M]an (get documentation) + au Filetype clojure nmap M FireplaceK + + " Go to Definition + au Filetype clojure nmap FireplaceDjumpmzzvzz15'z:Pulse + au Filetype clojure nmap vFireplaceDjumpmzzMzvzz15'z:Pulse + + " Require + au Filetype clojure nnoremap r :Require + + " Require Harder + au Filetype clojure nnoremap R :Require! + + " Get [S]ource + " au Filetype clojure nmap s FireplaceSource + + " Eval Buffer + au Filetype clojure nnoremap b :%Eval + + " Eval Form + au Filetype clojure nmap f FireplacePrintab + + " Eval Top-Level Form + au Filetype clojure nmap e mz$:call PareditFindDefunBck()FireplacePrintab'z + + " Open clojure command line editor client window thing + au Filetype clojure exe 'nmap E FireplacePrompt' . &cedit . 'i' + + " [S]how Last Result + au Filetype clojure nnoremap s :Last +augroup END + +" }}} " Fugitive {{{ let g:fugitive_github_domains = ['github.banksimple.com'] @@ -2408,6 +2515,17 @@ endif endfunction " }}} +command! LocationToggle call LocationToggle() +function! LocationToggle() " {{{ + if exists("w:is_location_window") + unlet w:is_location_window + exec "q" + else + lopen + let w:is_location_window = 1 + endif +endfunction " }}} + command! -bang -nargs=? QFixToggle call QFixToggle(0) function! QFixToggle(forced) " {{{ if exists("g:qfix_win") && a:forced == 0 @@ -2421,6 +2539,7 @@ nmap :ErrorsToggle nmap :QFixToggle +" nmap :LocationToggle " }}} " Nyan! {{{ @@ -2549,6 +2668,8 @@ " " \hpd - hg push default " \hpu - hg push upstream +" \hpg - hg push git +" \hP - push everything lol " " \hB - hg blame (current file) " \hD - hg diff (current file) @@ -2559,6 +2680,8 @@ nnoremap hpd :Start! hg push default nnoremap hpu :Start! hg push upstream +nnoremap hpg :Start! hg push git +nnoremap hP :Start! hg paths -q \| xargs -n1 hg push function! s:HgDiff() " {{{ diffthis diff -r 83aac563abc9 -r 8a1376b77b80 weechat/weechat.conf --- a/weechat/weechat.conf Wed Dec 09 17:49:02 2015 +0000 +++ b/weechat/weechat.conf Thu Jan 21 15:50:58 2016 +0000 @@ -344,8 +344,8 @@ meta-Ob = "/input history_global_next" meta-Oc = "/input move_next_word" meta-Od = "/input move_previous_word" -meta2-15~ = "/buffer -1" -meta2-17~ = "/buffer +1" +meta2-15~ = "/bar scroll nicklist * y-100%" +meta2-17~ = "/bar scroll nicklist * y+100%" meta2-18~ = "/window -1" meta2-19~ = "/window +1" meta2-1;3A = "/buffer -1"