This vim bundle adds complete support for property lists (plist) files on OS X.
The plugin uses the underlying plutil tool for manipulating property lists. It supports reading and writing in binary, xml and json formats.
- Vim 7.2 or later
- plutil (bundled with OS X)
Use your favorite plugin manager.
git clone git://github.com/darfink/vim-plist.git ~/.vim/bundle/vim-plist
None! Just go ahead and edit plist files. Although there are some customization options availabe.
Change the display format used when editing property lists:
let g:plist_display_format = 'xml'
Available options for this command; json or xml. This does not only control the display format of binary property lists, but also for json and xml files. If the option is set to json, property lists in xml format will be displayed as json as well (but the format used when saving will be preserved).
Change the plist format used when saving property lists:
let g:plist_save_format = ''
By default, property lists are saved in the same format as they had when opened. If you want to override this and always save property lists in a specific format, you can use json, xml or binary format.
Change the filetype used for property lists in json format:
If you want syntax checking I highly recommend Syntastic since it has integrated support for property lists.
In case you use the
sudo tee trick for writing to root owned files when using
Vim, it will not work with plist files. This is because the tee trick
uses the underlying Vim write function which bypasses the plugins
This does not add plist as a new filetype, but merely conversion functionality between the different representible formats.
Add saving format options while editing (e.g.
Change display format while editing (e.g.