diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-05-22 12:55:30 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-05-22 12:55:30 -0400 |
commit | 849d61b5510b3a3449c2664cb5a702126a2f6e8b (patch) | |
tree | 2d3b10a780465dd63892f7590c20de3bc621a307 /runtime | |
parent | d8d159c123336ed0c2eac36fcca66c45633d0370 (diff) | |
parent | 114fd522308c8b4b66b8ff30b0a91b02e347db73 (diff) | |
download | rneovim-849d61b5510b3a3449c2664cb5a702126a2f6e8b.tar.gz rneovim-849d61b5510b3a3449c2664cb5a702126a2f6e8b.tar.bz2 rneovim-849d61b5510b3a3449c2664cb5a702126a2f6e8b.zip |
Merge pull request #4786 from jbradaric/vim-7.4.1516
vim-patch:7.4.1516,7.4.1521
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 87b90900cb..eebdabd154 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2051,6 +2051,7 @@ serverlist() String get a list of available servers setbufvar({expr}, {varname}, {val}) set {varname} in buffer {expr} to {val} setcharsearch({dict}) Dict set character search from {dict} setcmdpos({pos}) Number set cursor position in command-line +setfperm({fname}, {mode} Number set {fname} file permissions to {mode} setline({lnum}, {line}) Number set line {lnum} to {line} setloclist({nr}, {list}[, {action}[, {title}]]) Number modify location list using {list} @@ -3628,6 +3629,8 @@ getfperm({fname}) *getfperm()* < This will hopefully (from a security point of view) display the string "rw-r--r--" or even "rw-------". + For setting permissions use |setfperm()|. + getftime({fname}) *getftime()* The result is a Number, which is the last modification time of the given file {fname}. The value is measured as seconds @@ -5866,6 +5869,23 @@ setcmdpos({pos}) *setcmdpos()* Returns 0 when successful, 1 when not editing the command line. +setfperm({fname}, {mode}) *setfperm()* *chmod* + Set the file permissions for {fname} to {mode}. + {mode} must be a string with 9 characters. It is of the form + "rwxrwxrwx", where each group of "rwx" flags represent, in + turn, the permissions of the owner of the file, the group the + file belongs to, and other users. A '-' character means the + permission is off, any other character means on. Multi-byte + characters are not supported. + + For example "rw-r-----" means read-write for the user, + readable by the group, not accessible by others. "xx-x-----" + would do the same thing. + + Returns non-zero for success, zero for failure. + + To read permissions see |getfperm()|. + setline({lnum}, {text}) *setline()* Set line {lnum} of the current buffer to {text}. To insert lines use |append()|. |