Home
last modified time | relevance | path

Searched refs:cwd (Results 1 – 25 of 31) sorted by relevance

12

/vim-8.2.3635/src/testdir/
H A Dvim9.vim8 let cwd = getcwd()
16 call chdir(cwd)
27 let cwd = getcwd()
34 call chdir(cwd)
45 let cwd = getcwd()
53 call chdir(cwd)
60 var cwd = getcwd()
67 chdir(cwd)
73 var cwd = getcwd()
80 chdir(cwd)
[all …]
H A Dtest_autochdir.vim7 let cwd = getcwd()
24 call chdir(cwd)
29 let cwd = getcwd()
43 execute 'lcd' cwd
45 execute 'tcd' cwd
47 execute 'cd' cwd
61 call chdir(cwd)
H A Dtest_find_complete.vim11 let cwd = getcwd()
12 let test_out = cwd . '/test.out'
39 call chdir(cwd)
55 exec "set path=" . cwd . "/Xfind/**"
110 exec "set path=" . cwd . "/Xfind/**"
136 call chdir(cwd .. "/Xfind/in")
141 call chdir(cwd . "/Xfind/")
160 call chdir(cwd)
H A Dtest_getcwd.vim48 let g:cwd=getcwd()
51 call chdir(g:cwd)
119 let cwd = getcwd()
121 call assert_equal(cwd[-1:], '/')
123 call assert_equal(cwd[-1:], '\')
H A Dtest_fnamemodify.vim36 let cwd = getcwd()
39 call chdir(cwd)
47 call chdir(cwd)
H A Dtest_undo.vim525 let cwd = getcwd()
528 let cwd = substitute(cwd, '^\([a-zA-Z]\):', '\1%', 'g')
530 let cwd = substitute(cwd . '/Xundofoo', '/', '%', 'g')
532 call assert_equal('Xundodir/' . cwd, undofile('Xundofoo'))
H A Dtest_cd.vim29 " Test that cd without argument echoes cwd on non-Unix systems.
H A Dtest_terminal.vim637 let buf = term_start(cmd, {'cwd': 'Xdir'})
649 call assert_fails("call term_start(&shell, {'cwd': 'Xfile'})", 'E475:')
653 call assert_fails("call term_start(&shell, {'cwd': 'Xdir'})", 'E475:')
664 call assert_fails("call term_start(&shell, {'cwd': 'XdirNoAccess'})", 'E475:')
H A Dtest_terminal3.vim778 " Test for sync buffer cwd with shell's pwd
H A Dtest_channel.vim1902 let job = job_start(cmd, {'callback': {ch,msg -> execute(":let g:envstr .= msg")}, 'cwd': expect})
2292 \ {'cwd' : ''},
H A Dtest_debugger.vim11 " in cwd
/vim-8.2.3635/runtime/autoload/
H A Dcontext.vim134 let l:cwd = fnamemodify(getcwd(), ":p") " Save local working directory
137 try " Set cwd to expand error file correctly
146 finally " Restore cwd and errorformat
148 execute 'lcd ' . fnameescape(l:cwd)
170 let l:cwd = fnamemodify(getcwd(), ":p") " Save local working directory
176 execute 'lcd ' . fnameescape(l:cwd)
H A Drust.vim353 " Executes {cmd} with the cwd set to {pwd}, without changing Vim's cwd.
354 " If {pwd} is the empty string then it doesn't change the cwd.
/vim-8.2.3635/src/
H A Dclientserver.c563 char_u *cwd; in build_drop_cmd() local
576 cwd = alloc(MAXPATHL); in build_drop_cmd()
577 if (cwd == NULL) in build_drop_cmd()
579 if (mch_dirname(cwd, MAXPATHL) != OK) in build_drop_cmd()
581 vim_free(cwd); in build_drop_cmd()
584 cdp = vim_strsave_escaped_ext(cwd, in build_drop_cmd()
591 vim_free(cwd); in build_drop_cmd()
H A Dfilepath.c784 char_u *cwd; in f_chdir() local
800 cwd = alloc(MAXPATHL); in f_chdir()
801 if (cwd != NULL) in f_chdir()
803 if (mch_dirname(cwd, MAXPATHL) != FAIL) in f_chdir()
806 slash_adjust(cwd); in f_chdir()
810 vim_free(cwd); in f_chdir()
1086 char_u *cwd; in f_getcwd() local
1117 cwd = alloc(MAXPATHL); in f_getcwd()
1118 if (cwd != NULL) in f_getcwd()
1120 if (mch_dirname(cwd, MAXPATHL) != FAIL) in f_getcwd()
[all …]
H A Dmain.c45 static void edit_buffers(mparm_T *parmp, char_u *cwd);
2897 char_u *cwd) // current working dir in edit_buffers() argument
2921 if (cwd != NULL) in edit_buffers()
2922 mch_chdir((char *)cwd); in edit_buffers()
H A Dwindow.c4871 char_u cwd[MAXPATHL]; in fix_current_dir() local
4873 if (mch_dirname(cwd, MAXPATHL) == OK) in fix_current_dir()
4874 globaldir = vim_strsave(cwd); in fix_current_dir()
H A Dos_win32.c4032 char *cwd) in vim_create_process() argument
4040 if (cwd != NULL) in vim_create_process()
4042 wcwd = enc_to_utf16((char_u *)cwd, NULL); in vim_create_process()
/vim-8.2.3635/runtime/ftplugin/
H A Dawk.vim41 let path = substitute(path, '^\.\=:\|:\.\=$\|:\.\=:', ',,', 'g') " POSIX cwd
H A Druby.vim77 let cwd = fnameescape(getcwd())
81 exe cd cwd
84 exe cd cwd
/vim-8.2.3635/runtime/syntax/
H A Dd.vim255 syn region dString start=+"+ end=+"[cwd]\=+ skip=+\\\\\|\\"+ contains=dFormat,dEscSequence,@Spell
256 syn region dRawString start=+`+ end=+`[cwd]\=+ contains=@Spell
257 syn region dRawString start=+r"+ end=+"[cwd]\=+ contains=@Spell
258 syn region dHexString start=+x"+ end=+"[cwd]\=+ contains=@Spell
430 syn keyword dAsmOpCode contained cvttps2pi cvttsd2si cvttss2si cwd
H A Dcsh.vim20 syn match cshSetVariables contained "cwd\|home\|noclobber\|path\|shell\|verbose"
H A Ddtrace.vim90 syn keyword dtraceIdentifier curthread cwd epid errno execname gid id ipl lgrp
H A Dfasm.vim44 syn keyword fasmInstr cvttps2pi cvttsd2si cvttss2si cwd cwde daa das data dec div
H A Dtcsh.vim53 …cat command compat_expr complete continue continue_args correct csubstnonl cwd dextract dirsfile d…

12