# HG changeset patch # User Steve Losh # Date 1679170340 14400 # Node ID a67a81af0dbdd89938bb3efbba604993e919eb4b # Parent eb8dc72799c83a64a3110a218ee106be0ed3c096# Parent 7da8a8457fd1ee7898d9e0d45580592a79b920bb Merge diff -r eb8dc72799c8 -r a67a81af0dbd bash_profile --- a/bash_profile Sat Mar 18 16:11:15 2023 -0400 +++ b/bash_profile Sat Mar 18 16:12:20 2023 -0400 @@ -111,3 +111,6 @@ export GPG_TTY export EDITOR=nvim + +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm diff -r eb8dc72799c8 -r a67a81af0dbd bin/hist --- a/bin/hist Sat Mar 18 16:11:15 2023 -0400 +++ b/bin/hist Sat Mar 18 16:12:20 2023 -0400 @@ -7,9 +7,14 @@ USAGE: $0 [OPTIONS] +Note that the output lines will be unsorted. For sorted output you can pipe the +output to sort: + + cat foo.dat | hist | sort -n -k3 + Options: - -h, --help display this help text and exit - -w N, --width N how wide the histograms should be + -h, --help display this help text and exit + -w COLS, --width COLS how wide the histogram bars should be " } @@ -49,7 +54,7 @@ bars = int(val * x * width) pads = width - bars - printf "%s ", val + printf "%s |", val for(i=0; i %n@%/%R%#%x%[%033[0m%] ' \timing \setenv PAGER less \setenv LESS -iS +set time zone 'etc/UTC'; diff -r eb8dc72799c8 -r a67a81af0dbd vim/vimrc --- a/vim/vimrc Sat Mar 18 16:11:15 2023 -0400 +++ b/vim/vimrc Sat Mar 18 16:12:20 2023 -0400 @@ -63,14 +63,8 @@ set spellfile=~/.vim/custom-dictionary.utf-8.add,~/.vim-local-dictionary.utf-8.add nnoremap zG 2zg -" iTerm2 is currently slow as balls at rendering the nice unicode lines, so for -" now I'll just use ASCII pipes. They're ugly but at least I won't want to kill -" myself when trying to move around a file. -set fillchars=diff:⣿,vert:│ -set fillchars=diff:⣿,vert:\| - -" Don't try to highlight lines longer than 800 characters. -set synmaxcol=800 +" Don't try to highlight lines longer than 500 characters. +set synmaxcol=500 " Time out on key codes but not mappings. " Basically this makes terminal Vim work sanely. @@ -89,9 +83,6 @@ " Save when losing focus au FocusLost * :silent! wall -" Resize splits when the window is resized -" au VimResized * :wincmd = - " Leader let mapleader = "," let maplocalleader = "\\" @@ -219,39 +210,10 @@ " }}} " }}} -" Abbreviations ----------------------------------------------------------- {{{ - -function! EatChar(pat) - let c = nr2char(getchar(0)) - return (c =~ a:pat) ? '' : c -endfunction - -function! MakeSpacelessIabbrev(from, to) - execute "iabbrev ".a:from." ".a:to."=EatChar('\\s')" -endfunction -function! MakeSpacelessBufferIabbrev(from, to) - execute "iabbrev ".a:from." ".a:to."=EatChar('\\s')" -endfunction - -call MakeSpacelessIabbrev('sl/', 'http://stevelosh.com/') -call MakeSpacelessIabbrev('bb/', 'http://bitbucket.org/') -call MakeSpacelessIabbrev('bbs/', 'http://bitbucket.org/sjl/') -call MakeSpacelessIabbrev('gh/', 'http://github.com/') -call MakeSpacelessIabbrev('ghs/', 'http://github.com/sjl/') - -iabbrev ldis ಠ_ಠ -iabbrev lsad ಥ_ಥ -iabbrev lhap ಥ‿ಥ -iabbrev lmis ಠ‿ಠ - -iabbrev c8 CHIP-8 +" Abbreviations & Digraphs ------------------------------------------------ {{{ iabbrev todo TODO -iabbrev sl@ steve@stevelosh.com - -iabbrev spf set -euo pipefail - silent! digr -. 8230 "U+2026=… HORIZONTAL ELLIPSIS silent! digr !, 8816 "U+2270=≰ NEITHER LESS-THAN NOR EQUAL TO silent! digr !. 8817 "U+2271=≱ NEITHER GREATER-THAN NOR EQUAL TO @@ -334,6 +296,10 @@ nnoremap o "zyiW:call Open(@z) vnoremap o "zy:call Open(@z) +" Delete to black hole register +nnoremap dD "_dd +vnoremap D "_d + " Yank to end of line nnoremap Y y$ @@ -436,9 +402,6 @@ nnoremap :%s/ vnoremap :s/ -" HTML tag closing -inoremap :call InsertCloseTag()a - " Marks and Quotes noremap ' ` noremap æ ' @@ -463,9 +426,6 @@ " Unfuck my screen nnoremap U :syntax sync fromstart:redraw! -" Open current directory in Finder -nnoremap O :!open . - " Zip Right " " Moves the character under the cursor to the end of the line. Handy when you @@ -874,47 +834,6 @@ augroup END " }}} -" Clojure {{{ - -" extra folding {{{ -let g:clojure_fold_extra = [ - \ 'defgauge', - \ 'defsketch' - \ - \ ] -" }}} - -augroup ft_clojure - au! - - au BufNewFile,BufRead *.edn set filetype=clojure - - au FileType clojure silent! call TurnOnClojureFolding() - au FileType clojure compiler clojure - au FileType clojure setlocal isk-=. - - au FileType clojure iabbrev defun defn - - " Things that should be indented 2-spaced - au FileType clojure setlocal lispwords+=when-found,defform,when-valid,try,while-let,try+,throw+ - - au FileType clojure RainbowParenthesesActivate - au syntax clojure RainbowParenthesesLoadRound - - " Paredit - au FileType clojure call EnableParedit() - au FileType clojure nnoremap ( :call PareditToggle() - " ) - - " Duplicate - au FileType clojure nnoremap [] :call DuplicateLispForm() - - " Indent top-level form. - au FileType clojure nmap gi mz99[(v%='z - -augroup END - -" }}} " Common Lisp {{{ " Helper Functions {{{ @@ -1184,6 +1103,7 @@ au FileType lisp nnoremap [] :call DuplicateLispForm() au FileType lisp nnoremap ( :call PareditToggle() ") + au FileType lisp inoremap :call vlime#plugin#SendToREPL(vlime#ui#CurTopExpr()) " Navigate trees of sexps with arrows au FileType lisp call s:vim_sexp_mappings() @@ -1193,8 +1113,58 @@ au FileType lisp noremap :call SexpDown() " Writing - au FileType lisp noremap = I; => + + " April + au FileType lisp inoremap ; ⍝ + au FileType lisp inoremap i ⍳ + au FileType lisp inoremap r ⍴ + au FileType lisp inoremap e ∊ + au FileType lisp inoremap _i ⍸ + au FileType lisp inoremap _, ⍪ + au FileType lisp inoremap :~ ⍨ + au FileType lisp inoremap :^ ¨ + + au FileType lisp inoremap * × + au FileType lisp inoremap / ÷ + au FileType lisp inoremap 0 ∘ + au FileType lisp inoremap - ¯ + + au FileType lisp inoremap c ⌈ + au FileType lisp inoremap f ⌊ + + au FileType lisp inoremap < ← + au FileType lisp inoremap > → + au FileType lisp inoremap ^ ↑ + au FileType lisp inoremap v ↓ + + au FileType lisp inoremap G^ ⍋ + au FileType lisp inoremap Gv ⍒ + + au FileType lisp inoremap o\| ⌽ + au FileType lisp inoremap o/ ⍉ + au FileType lisp inoremap o- ⊖ + + au FileType lisp inoremap A ∧ + au FileType lisp inoremap O ∨ + + au FileType lisp inoremap =< ≤ + au FileType lisp inoremap =< ≥ + au FileType lisp inoremap =/ ≠ + au FileType lisp inoremap === ≡ + au FileType lisp inoremap ==/ ≢ + + au FileType lisp inoremap q ⎕ + au FileType lisp inoremap Q ⌷ + au FileType lisp inoremap t ⊢ + + au FileType lisp inoremap u ∪ + au FileType lisp inoremap U ∩ + au FileType lisp inoremap + ⌿ + au FileType lisp inoremap [ ⊂ + au FileType lisp inoremap ] ⊃ + + au FileType lisp inoremap z ⍬ augroup END " }}} " }}} @@ -1565,7 +1535,6 @@ au FileType javascript setlocal foldmethod=marker au FileType javascript setlocal foldmarker={,} - au FileType javascript call MakeSpacelessBufferIabbrev('clog', 'console.log();') " Make { insert a pair of brackets in such a way that the cursor is correctly " positioned inside of them AND the following code doesn't get unfolded. @@ -2960,55 +2929,7 @@ if has('gui_running') " GUI Vim - - set guifont=Menlo\ Regular\ for\ Powerline:h12 - - " Remove all the UI cruft - set go-=T - set go-=l - set go-=L - set go-=r - set go-=R - - highlight SpellBad term=underline gui=undercurl guisp=Orange - - " Different cursors for different modes. - set guicursor=n-c:block-Cursor-blinkon0 - set guicursor+=v:block-vCursor-blinkon0 - set guicursor+=i-ci:ver20-iCursor - - if has("gui_macvim") - " Full screen means FULL screen - set fuoptions=maxvert,maxhorz - - " Use the normal HIG movements, except for M-Up/Down - let macvim_skip_cmd_opt_movement = 1 - no - no! - no - no! - - no - no! - no - no! - - no - ino - imap { - - no - ino - imap } - - imap - inoremap my0c`y - else - " Non-MacVim GUI, like Gvim - end else - " Console Vim - " Mouse support set mouse=a endif diff -r eb8dc72799c8 -r a67a81af0dbd weechat/autosort.conf --- a/weechat/autosort.conf Sat Mar 18 16:11:15 2023 -0400 +++ b/weechat/autosort.conf Sat Mar 18 16:12:20 2023 -0400 @@ -6,7 +6,7 @@ # # Use commands like /set or /fset to change settings in WeeChat. # -# For more info, see: https://weechat.org/doc/quickstart/ +# For more info, see: https://weechat.org/doc/quickstart # [sorting]