chrisbra / Recover.vim

A Plugin to show a diff, whenever recovering a buffer
http://www.vim.org/scripts/script.php?script_id=3068
247 stars 25 forks source link

Some cvim fixes #35

Closed matjon closed 9 years ago

matjon commented 9 years ago

Hello, I decided to look at cvim a bit. I have managed to fixed that bug with handling pathnames (#33). Now everything works nice. Additionally, I have made cvim a bit easier to use.

chrisbra commented 9 years ago

Thanks for that. I have included it. Just one question remains, it still does not handle .swf files, right?

matjon commented 9 years ago

W dniu 22.04.2015 o 11:07, Christian Brabandt pisze:

Thanks for that. I have included it. Just one question remains, it still does not handle .swf files, right?

I have withdrawn the previous pull request as I have integrated the only commit from that pull request into that one. So this pull request contains a commit to ignore all .swf files (commit ab433a2641f34b3e1b816d26c05a3029d3d6090e ). If You think that this is inappropriate, please revert it. There should be a command line switch, something like --include-swf.

Greetings, Mateusz

chrisbra commented 9 years ago

Okay. Since Vim swapfiles usually start with a literal '.' I think it is safe to also find '.swf' files and do not skip those files. In doubt the user will know, that this is a flash file, but I rather include it. So I have tweaked the regexp to match those files as well.

Also I have just fixed a bug, that prevented to pipe the output of cvim to less.

Both seem to work so far from my little testing.

Disclaimer: I know almost no Python, so I'd appreciate, if you could check, that I didn't break it.