Lines Matching refs:cd
1 " Test for :cd and chdir()
8 call assert_fails('cd ' . repeat('x', 5000), 'E344:')
13 cd ..
15 exe 'cd ' .. fnameescape(path)
21 " Test that cd without argument goes to $HOME directory on Unix systems.
23 cd
26 exe 'cd ' .. fnameescape(path)
29 " Test that cd without argument echoes cwd on non-Unix systems.
30 call assert_match(getcwd(), execute('cd'))
35 " Test the :cd - goes back to the previous directory.
37 cd ..
40 cd -
42 cd -
44 cd -
47 " Test for :cd - without a previous directory
49 call assert_fails('cd -', 'E186:')
69 cd Xdir
119 cd Xdir
129 cd - | cd -
186 cd Xdeleted_dir
192 cd -
201 for cmd in ['cd', 'chdir', 'lcd', 'lchdir', 'tcd', 'tchdir']
213 cd Xa
217 cd ..