Commit Graph

8 Commits

Author SHA1 Message Date
ZyX
a1b0f4073d stdpaths: Do NOT create data directories
This is none of option.c business to create *possibly unneeded* **default**
directories **before** user specified where he actually wants to place the
files.
2015-10-23 14:54:10 +03:00
ZyX
a06a8bad60 stdpaths: Give proper error message in case directory creation failed 2015-10-23 14:54:10 +03:00
ZyX
502a20a8fe stdpaths,main: Remove all remaining memory leaks 2015-10-23 14:54:10 +03:00
ZyX
be91bc1e1a stdpaths: Export get_xdg function (renamed) and use it for runtimepath 2015-10-23 14:54:10 +03:00
ZyX
afb0f2f9b1 stdpaths: Rename export functions so that they have common prefix 2015-10-23 14:54:10 +03:00
ZyX
120ec8c2ea stdpaths: Remove useless functions get_user_*_dir 2015-10-23 14:54:09 +03:00
ZyX
1db5a807b2 stdpaths: Fix some issues, specifically
- Remove/add includes
- Do not pretend that returns are const
- Add function attributes
- Allocate memory always in get_xdg
2015-10-23 14:54:09 +03:00
Keerthan Jaic
c2dd07448f option,main: Partial support of XDG base directory specification
- Add functions that are able to query XDG.
- Replace defaults for
  - &runtimepath. Does not follow #78.
  - &viewdir.
  - &undodir.
  - &directory.
  - &backupdir. Does not follow #78.
  - vimrc location.
- Remove user vimrc file line from :version message.
2015-10-23 14:54:09 +03:00