0

Sometimes, when I am deleting some lines, such as 20dd or ddG, vim closes unexpectedly.

I don't know why and I can't add more info because I don't know where to look at. Is there any kind of log?

Regards

AssertionError
  • 136
  • 1
  • 10

1 Answers1

3

You can find the log generated by nvim on $HOME/.cache/nvim/log. Each line shows the log level and error message. Check if there are any errors when nvim exited.

jdhao
  • 24,001
  • 18
  • 134
  • 273
  • at the end I had to use (if I remember correctly), this: https://stackoverflow.com/a/3026047/13182570, but I see some errors in that file, next time I'll check there first. Do you know if there's some difference between the logs I saw in both cases (your answer and the one I found) – AssertionError Dec 21 '21 at 15:55
  • 1
    I think log in `$HOME/.cache/nvim/log` only logs serious issues. Log in that answer will print a lot of unnecessary messages if you have a high verbose level. – jdhao Dec 22 '21 at 05:17
  • 1
    Anyone know where to find this on Windows? – Cogwheel Aug 01 '23 at 17:37