New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filereadable()の説明が変 #596

Closed
koron opened this Issue Jul 24, 2014 · 6 comments

Comments

Projects
None yet
4 participants
@koron
Member

koron commented Jul 24, 2014

filereadable({file})                    *filereadable()*
        The result is a Number, which is TRUE when a file with the
        name {file} exists, and can be read.  If {file} doesn't exist,
        or is a directory, the result is FALSE.  {file} is any
        expression, which is used as a String.
        If you don't care about the file being readable you can use
        |glob()|.

TRUE/FALSEは存在しないのに、文章中で使ってる。

@koron

This comment has been minimized.

Show comment
Hide comment
@koron

koron Jul 24, 2014

Member

ニコ生のコメから拾ってきたw http://live.nicovideo.jp/watch/lv187307393

Member

koron commented Jul 24, 2014

ニコ生のコメから拾ってきたw http://live.nicovideo.jp/watch/lv187307393

@osyo-manga

This comment has been minimized.

Show comment
Hide comment
@osyo-manga

osyo-manga Jul 24, 2014

:help isdirectory():help functions なんかにも出てきていますね>TRUE/FALSE

osyo-manga commented Jul 24, 2014

:help isdirectory():help functions なんかにも出てきていますね>TRUE/FALSE

@mattn

This comment has been minimized.

Show comment
Hide comment
@mattn

mattn Jul 25, 2014

Member

単なるgrep結果

develop.txt:iswhite()   vim_iswhite()   Only TRUE for tab and space
eval.txt:For boolean operators Numbers are used.  Zero is FALSE, non-zero is TRUE.
eval.txt:"foo" is converted to 0, which means FALSE.  To test for a non-empty string,
eval.txt:   :if has_key(dict, 'foo')    " TRUE if dict has entry with key "foo"
eval.txt:   :if empty(dict)         " TRUE if dict is empty
eval.txt:and the comparison is done on Numbers. This means that "0 == 'x'" is TRUE,
eval.txt:bufexists( {expr})     Number  TRUE if buffer {expr} exists
eval.txt:buflisted( {expr})     Number  TRUE if buffer {expr} is listed
eval.txt:bufloaded( {expr})     Number  TRUE if buffer {expr} is loaded
eval.txt:did_filetype()         Number  TRUE if FileType autocommand event used
eval.txt:empty( {expr})         Number  TRUE if {expr} is empty
eval.txt:eventhandler( )            Number  TRUE if inside an event handler
eval.txt:exists( {expr})            Number  TRUE if {expr} exists
eval.txt:filereadable( {file})      Number  TRUE if {file} is a readable file
eval.txt:filewritable( {file})      Number  TRUE if {file} is a writable file
eval.txt:has( {feature})            Number  TRUE if feature {feature} supported
eval.txt:has_key( {dict}, {key})        Number  TRUE if {dict} has entry {key}
eval.txt:haslocaldir()          Number  TRUE if current window executed |:lcd|
eval.txt:               Number  TRUE if mapping to {what} exists
eval.txt:hlexists( {name})      Number  TRUE if highlight group {name} exists
eval.txt:isdirectory( {directory})  Number  TRUE if {directory} is a directory
eval.txt:islocked( {expr})      Number  TRUE if {expr} is locked
eval.txt:       The result is a Number, which is TRUE when a file with the
eval.txt:       or is a directory, the result is FALSE.  {file} is any
eval.txt:       exist, or isn't a directory, the result is FALSE.  {directory}
indent.txt: $command_hist = TRUE;
options.txt:    If the character is '@', all characters where isalpha() returns TRUE
syntax.txt:  Boolean    a boolean constant: TRUE, false
syntax.txt:"NULL", "SIG_IGN" and others.  But not "TRUE", for example, because this is
todo.txt:because win_valid() always returns FALSE.  Below win_new_tabpage() in
todo.txt:(ARABIC_CHAR(u8c)) is TRUE.
todo.txt:       SHGetSpecialFolderPath(NULL, lpzsPath, CSIDL_APPDATA, FALSE);
todo.txt:       SHGetSpecialFolderPath(NULL, lpzsPath, CSIDL_COMMON_APPDATA, FALSE);
version5.txt:mch_isdir() for Unix returned TRUE for "" on some systems.
version5.txt:wrong position.  can_si was still TRUE when the cursor is not in the indent of
version6.txt:Solution:   call xim_reset() with im_set_active(FALSE). (Takuhiro Nishioka)
version6.txt:Solution:   Change "true" to "TRUE". (Walter Briscoe)
version6.txt:       bInComposition is always FALSE, causing ImeGetTempComposition()
version7.txt:Solution:   Change TRUE to RE_MAGIC + RE_STRING.
version7.txt:Solution:   Remove "TRUE". (Michael Henry)
version7.txt:Solution:   Always return TRUE for the WM_NCCREATE message. (Andy Kittner)
version7.txt:Solution:   Set qf_nonevalid to TRUE when appropriate. (Christian Brabandt)
version7.txt:Solution:   Call normal_cmd() with toplevel set to TRUE.
version7.txt:Solution:   Pass TRUE for abort_if_last in the call to close_buffer().
Member

mattn commented Jul 25, 2014

単なるgrep結果

develop.txt:iswhite()   vim_iswhite()   Only TRUE for tab and space
eval.txt:For boolean operators Numbers are used.  Zero is FALSE, non-zero is TRUE.
eval.txt:"foo" is converted to 0, which means FALSE.  To test for a non-empty string,
eval.txt:   :if has_key(dict, 'foo')    " TRUE if dict has entry with key "foo"
eval.txt:   :if empty(dict)         " TRUE if dict is empty
eval.txt:and the comparison is done on Numbers. This means that "0 == 'x'" is TRUE,
eval.txt:bufexists( {expr})     Number  TRUE if buffer {expr} exists
eval.txt:buflisted( {expr})     Number  TRUE if buffer {expr} is listed
eval.txt:bufloaded( {expr})     Number  TRUE if buffer {expr} is loaded
eval.txt:did_filetype()         Number  TRUE if FileType autocommand event used
eval.txt:empty( {expr})         Number  TRUE if {expr} is empty
eval.txt:eventhandler( )            Number  TRUE if inside an event handler
eval.txt:exists( {expr})            Number  TRUE if {expr} exists
eval.txt:filereadable( {file})      Number  TRUE if {file} is a readable file
eval.txt:filewritable( {file})      Number  TRUE if {file} is a writable file
eval.txt:has( {feature})            Number  TRUE if feature {feature} supported
eval.txt:has_key( {dict}, {key})        Number  TRUE if {dict} has entry {key}
eval.txt:haslocaldir()          Number  TRUE if current window executed |:lcd|
eval.txt:               Number  TRUE if mapping to {what} exists
eval.txt:hlexists( {name})      Number  TRUE if highlight group {name} exists
eval.txt:isdirectory( {directory})  Number  TRUE if {directory} is a directory
eval.txt:islocked( {expr})      Number  TRUE if {expr} is locked
eval.txt:       The result is a Number, which is TRUE when a file with the
eval.txt:       or is a directory, the result is FALSE.  {file} is any
eval.txt:       exist, or isn't a directory, the result is FALSE.  {directory}
indent.txt: $command_hist = TRUE;
options.txt:    If the character is '@', all characters where isalpha() returns TRUE
syntax.txt:  Boolean    a boolean constant: TRUE, false
syntax.txt:"NULL", "SIG_IGN" and others.  But not "TRUE", for example, because this is
todo.txt:because win_valid() always returns FALSE.  Below win_new_tabpage() in
todo.txt:(ARABIC_CHAR(u8c)) is TRUE.
todo.txt:       SHGetSpecialFolderPath(NULL, lpzsPath, CSIDL_APPDATA, FALSE);
todo.txt:       SHGetSpecialFolderPath(NULL, lpzsPath, CSIDL_COMMON_APPDATA, FALSE);
version5.txt:mch_isdir() for Unix returned TRUE for "" on some systems.
version5.txt:wrong position.  can_si was still TRUE when the cursor is not in the indent of
version6.txt:Solution:   call xim_reset() with im_set_active(FALSE). (Takuhiro Nishioka)
version6.txt:Solution:   Change "true" to "TRUE". (Walter Briscoe)
version6.txt:       bInComposition is always FALSE, causing ImeGetTempComposition()
version7.txt:Solution:   Change TRUE to RE_MAGIC + RE_STRING.
version7.txt:Solution:   Remove "TRUE". (Michael Henry)
version7.txt:Solution:   Always return TRUE for the WM_NCCREATE message. (Andy Kittner)
version7.txt:Solution:   Set qf_nonevalid to TRUE when appropriate. (Christian Brabandt)
version7.txt:Solution:   Call normal_cmd() with toplevel set to TRUE.
version7.txt:Solution:   Pass TRUE for abort_if_last in the call to close_buffer().
@k-takata

This comment has been minimized.

Show comment
Hide comment
@k-takata

k-takata Jul 6, 2016

Member

同じような指摘が入り、TRUE/FALSE のタグが追加されることになりました。
https://groups.google.com/d/msg/vim_dev/OxbsNhu_c5I/PLdckH47CQAJ

Member

k-takata commented Jul 6, 2016

同じような指摘が入り、TRUE/FALSE のタグが追加されることになりました。
https://groups.google.com/d/msg/vim_dev/OxbsNhu_c5I/PLdckH47CQAJ

@k-takata

This comment has been minimized.

Show comment
Hide comment

@k-takata k-takata closed this Jul 7, 2016

@k-takata k-takata added the xlose/fixed label Jul 7, 2016

@koron

This comment has been minimized.

Show comment
Hide comment
@koron

koron Jul 7, 2016

Member

🙇

Member

koron commented Jul 7, 2016

🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment