mcauley-penney / tidy.nvim

A small Neovim plugin to remove trailing whitespace and empty lines at end of file on every save
107 stars 15 forks source link

Preserve registers when deleting whitespace at EOF #8

Closed kmarius closed 1 year ago

kmarius commented 1 year ago

I wanted to move some code from one file to another, but when I saved the register was overridden with the whitespace.

mcauley-penney commented 1 year ago

Thanks! Not only did I not ever realize that saving was overwriting the default register but I didn't know that you could solve that problem this way. Merging.