Fork me on GitHub
#vim
<
2018-06-12
>
fatihict09:06:13

I want to wrap a form in a reader conditional with a normal mode mapping. Does anyone have a cool function for this already? (js/console.log :foo :bar) =some-nmap-magic=> #?(:cljs (js/console.log :foo :bar))

hkupty11:06:02

if you have vim-sexp and vim-surround, you could do something like nmap cljs i#?<ESC>wysaf)a:cljs <ESC>

👍 4
hkupty11:06:55

it should work when pressed on top of the beginning of the form

eraserhd13:06:50

Hey, so I found this: https://github.com/caseyscarborough/keylogger (a simple, small key logger for Mac OS X written in C and therefore auditable).

eraserhd13:06:40

My plan was to use the data from the previous day (things I backspace after frequently) to generate my 5-minute morning typing test.

eraserhd13:06:05

But I'm now realizing that it would be cool to record Vim keystrokes and find longest repetitions.

eraserhd13:06:38

(I haven't installed it yet, sometime in the next week.)

dominicm15:06:44

I wonder if it is still running