Home
last modified time | relevance | path

Searched refs:swapname (Results 1 – 20 of 20) sorted by relevance

/vim-8.2.3635/src/testdir/
H A Dtest_swap.vim7 func s:swapname()
8 return trim(execute('swapname'))
27 let swfname = s:swapname()
79 let swapname = s:swapname()
114 let fname = s:swapname()
151 let expected = s:swapname()
156 let expected = s:swapname()
174 let s:swapname = v:swapname
196 let s:swapname = ''
207 let s:swapname = ''
[all …]
H A Dtest_recover.vim31 let swname = split(execute("swapname"))[0]
142 let b = readblob(swapname(''))
203 let sn = swapname('')
401 call assert_equal('.Xfile1.swp', fnamemodify(swapname(''), ':t'))
453 let sn = swapname('')
H A Dtest_signals.vim63 let swap_name = swapname('%')
H A Druntest.vim113 call assert_report('Unexpected swap file: ' .. v:swapname)
H A Dtest_vim9_builtin.vim3591 …CheckDefAndScriptFailure2(['swapname([])'], 'E1013: Argument 1: type mismatch, expected string but…
3592 assert_fails('swapname("NonExistingBuf")', 'E94:')
H A Dtest_quickfix.vim2984 call assert_match('.Xapple.swo', swapname(''))
/vim-8.2.3635/src/
H A Dex_cmds.c2151 char_u *swapname; in check_overwrite() local
2173 swapname = makeswapname(fname, ffname, curbuf, dir); in check_overwrite()
2175 r = vim_fexists(swapname); in check_overwrite()
2185 swapname); in check_overwrite()
2189 vim_free(swapname); in check_overwrite()
2198 swapname); in check_overwrite()
2199 vim_free(swapname); in check_overwrite()
2203 vim_free(swapname); in check_overwrite()
H A Dmemline.c1962 char_u *swapname; in recover_names() local
1964 swapname = modname(fname_res, in recover_names()
1971 if (swapname != NULL) in recover_names()
1973 if (mch_stat((char *)swapname, &st) != -1) // It exists! in recover_names()
1978 files[0] = swapname; in recover_names()
1979 swapname = NULL; in recover_names()
1983 vim_free(swapname); in recover_names()
/vim-8.2.3635/runtime/doc/
H A Drecover.txt29 :sw[apname] *:sw* *:swapname*
31 Or you can use the |swapname()| function, which also allows for seeing the
H A Dusr_11.txt305 |:swapname| See the name of the swap file for the current file.
H A Dtags3225 :swapname recover.txt /*:swapname*
9315 swapname() eval.txt /*swapname()*
9316 swapname-variable eval.txt /*swapname-variable*
10015 v:swapname eval.txt /*v:swapname*
H A Deval.txt2311 *v:swapname* *swapname-variable*
2312 v:swapname Only valid when executing |SwapExists| autocommands: Name of
3045 swapname({buf}) String swap file of buffer {buf}
11150 swapname({buf}) *swapname()*
11154 |:swapname| (unless there is no swap file).
11158 GetBufname()->swapname()
H A Dautocmd.txt1106 The |v:swapname| variable holds the name of
H A Dindex.txt1642 |:swapname| :sw[apname] show the name of the current swap file
H A Dusr_41.txt890 swapname() get the swap file path of a buffer
H A Dversion7.txt970 |v:swapname| name of the swap file for the |SwapExists| event
1267 been added. The |v:swapname|, |v:swapchoice| and |v:swapcommand| variables
H A Dtodo.txt424 When editing a file with ":edit" the output of :swapname is relative, while
H A Dversion5.txt702 system is edited. |:swapname| On MSDOS the hidden file attribute is NOT
H A Dversion8.txt25969 |swapname()|
28326 Solution: Add swapname(). (Ozaki Kiichi, closes #3441)
/vim-8.2.3635/runtime/syntax/
H A Dvim.vim82 …placelist sin soundfold spellsuggest str2float strchars string strtrans swapname synstack tabpagew…