aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-04-15 04:09:30 +0200
committerGitHub <noreply@github.com>2018-04-15 04:09:30 +0200
commit1e7d5e8cdf9827978f42ea114cfd85f9d32b00eb (patch)
tree6c710f2f6c6680ce41c55ee0e29c980946c9f623 /runtime
parent5abfa94ed28e7058372b8368b53162c1c92cbc4e (diff)
parentec459965f50456a393f6fb182568a866e787fcda (diff)
downloadrneovim-1e7d5e8cdf9827978f42ea114cfd85f9d32b00eb.tar.gz
rneovim-1e7d5e8cdf9827978f42ea114cfd85f9d32b00eb.tar.bz2
rneovim-1e7d5e8cdf9827978f42ea114cfd85f9d32b00eb.zip
Merge #6272 'stdpath()'
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 5b2fcbde3d..20f0eb303b 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}
@@ -7262,6 +7263,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