aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorChristian Höltje <docwhat@gerf.org>2017-03-14 01:00:12 -0400
committerJames McCoy <jamessan@jamessan.com>2018-03-29 10:41:04 -0400
commit868b84199ef321834022c19d9ba1d1d04cb77570 (patch)
treef693aa795470590808659eb6674267478745bcfa /runtime
parente54ff10d44a18b59350503accc68811e4a5be29f (diff)
downloadrneovim-868b84199ef321834022c19d9ba1d1d04cb77570.tar.gz
rneovim-868b84199ef321834022c19d9ba1d1d04cb77570.tar.bz2
rneovim-868b84199ef321834022c19d9ba1d1d04cb77570.zip
eval: Add stdpath() method (#5297)
Adds the :stdpath method for fetching XDG standard directories. Fixes #5297
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 767fc133d8..9462c2a3ee 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2286,6 +2286,7 @@ split({expr} [, {pat} [, {keepempty}]])
List make |List| from {pat} separated {expr}
sqrt({expr}) Float square root of {expr}
stdioopen({dict}) Number open stdio in a headless instance.
+stdpath({what}) String/List returns the standard path(s) for {what}
str2float({expr}) Float convert String to Float
str2nr({expr} [, {base}]) Number convert String to Number
strchars({expr} [, {skipcc}]) Number character length of the String {expr}
@@ -7271,6 +7272,23 @@ stdioopen({opts}) *stdioopen()*
- 0 on invalid arguments
+stdpath({what}) *stdpath()* *E6100*
+ Returns the standard path(s) for {what}.
+
+ These directories are the default locations for various files
+ used by Neovim.
+
+ {what} Type Description ~
+ cache String Cache directory. Useful for plugins
+ that need temporary files to work.
+ config String User configuration directory. The
+ |init.vim| is stored here.
+ config_dirs List Additional configuration directories.
+ data String User data directory. The |shada-file|
+ is stored here.
+ data_dirs List Additional data directories.
+
+
str2float({expr}) *str2float()*
Convert String {expr} to a Float. This mostly works the same
as when using a floating point number in an expression, see