vim-plist
vim-plist copied to clipboard
Non-plist filename extensions
Since this doesn't actually add a new filetype, setting ft to plist doesn't work on a plist file with a different extension (".strings"), for instance. How would I got about getting the plugin to treat such a file as a binary plist?
That's a very valid use case and something this plugin should accommodate. I do not know the best way to implement support for this. I'm far from a VimL guru, so I am not aware of any solutions from the top of my head.
A temporary, but subpar solution, would be to add the following to your .vimrc:
autocmd BufReadCmd *.strings call plist#Read(1) | call plist#ReadPost()
autocmd BufWriteCmd,FileWriteCmd *.strings call plist#Write()