Is it possible to log all commands I type in VIM for later analyzing? I mean each simple command like motions or changing the text, i.e. jjjjjjkkkcw<newword>
If it is not possible in VIM, maybe there is a keylogger on linux, which can be attached to specific window/process?
I’d prefer in-vim logging, because it could have options to have different logs for different vim modes. Also I don’t want to log “colon” commands.
Yes, there is! When launching vim use
vim -W ~/vimcommands.logto >> to a file, or-wto overwrite the file.You may want to add a bash alias to store vim logs based on file name. I am interested to see how you intend to analyse your logs, I would like to do the same.