A vim log lexer
Quick pattern stats:
cat /path/to/vim/logs* | vimlex | sort | uniq -c | sort -nr | head -n7
2835 k
2827 j
1307 l
821 h
152 w
136 :
114 d
...
Track vim keystrokes by creating an alias that uses the scriptout flag:
alias vim="vim -w ~/vimlogs/\$(date '+%Y%m%d').$RANDOM.log"
This will write keystrokes to the supplied file when vim is closed.
$ go get github.com/dstokes/vimlex
Make sure your PATH
includes your GOPATH
bin directory:
export PATH=$PATH:$GOPATH/bin