Mercurial > vim
comparison runtime/doc/eval.txt @ 14778:20653d6f3d95 v8.1.0401
patch 8.1.0401: can't get swap name of another buffer
commit https://github.com/vim/vim/commit/110bd60985c31e8978e9b071e2179f4233ef8557
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 16 18:46:59 2018 +0200
patch 8.1.0401: can't get swap name of another buffer
Problem: Can't get swap name of another buffer.
Solution: Add swapname(). (Ozaki Kiichi, closes https://github.com/vim/vim/issues/3441)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 16 Sep 2018 19:00:06 +0200 |
parents | a179e5cfcab7 |
children | 40ef13331e02 |
comparison
equal
deleted
inserted
replaced
14777:af2860850f5e | 14778:20653d6f3d95 |
---|---|
2415 submatch({nr} [, {list}]) String or List | 2415 submatch({nr} [, {list}]) String or List |
2416 specific match in ":s" or substitute() | 2416 specific match in ":s" or substitute() |
2417 substitute({expr}, {pat}, {sub}, {flags}) | 2417 substitute({expr}, {pat}, {sub}, {flags}) |
2418 String all {pat} in {expr} replaced with {sub} | 2418 String all {pat} in {expr} replaced with {sub} |
2419 swapinfo({fname}) Dict information about swap file {fname} | 2419 swapinfo({fname}) Dict information about swap file {fname} |
2420 swapname({expr}) String swap file of buffer {expr} | |
2420 synID({lnum}, {col}, {trans}) Number syntax ID at {lnum} and {col} | 2421 synID({lnum}, {col}, {trans}) Number syntax ID at {lnum} and {col} |
2421 synIDattr({synID}, {what} [, {mode}]) | 2422 synIDattr({synID}, {what} [, {mode}]) |
2422 String attribute {what} of syntax ID {synID} | 2423 String attribute {what} of syntax ID {synID} |
2423 synIDtrans({synID}) Number translated syntax ID of {synID} | 2424 synIDtrans({synID}) Number translated syntax ID of {synID} |
2424 synconcealed({lnum}, {col}) List info about concealing | 2425 synconcealed({lnum}, {col}) List info about concealing |
8039 In case of failure an "error" item is added with the reason: | 8040 In case of failure an "error" item is added with the reason: |
8040 Cannot open file: file not found or in accessible | 8041 Cannot open file: file not found or in accessible |
8041 Cannot read file: cannot read first block | 8042 Cannot read file: cannot read first block |
8042 Not a swap file: does not contain correct block ID | 8043 Not a swap file: does not contain correct block ID |
8043 Magic number mismatch: Info in first block is invalid | 8044 Magic number mismatch: Info in first block is invalid |
8045 | |
8046 swapname({expr}) *swapname()* | |
8047 The result is the swap file path of the buffer {expr}. | |
8048 For the use of {expr}, see |bufname()| above. | |
8049 If buffer {expr} is the current buffer, the result is equal to | |
8050 |:swapname| (unless no swap file). | |
8051 If buffer {expr} has no swap file, returns an empty string. | |
8044 | 8052 |
8045 synID({lnum}, {col}, {trans}) *synID()* | 8053 synID({lnum}, {col}, {trans}) *synID()* |
8046 The result is a Number, which is the syntax ID at the position | 8054 The result is a Number, which is the syntax ID at the position |
8047 {lnum} and {col} in the current window. | 8055 {lnum} and {col} in the current window. |
8048 The syntax ID can be used with |synIDattr()| and | 8056 The syntax ID can be used with |synIDattr()| and |