set buftype=nowrite
set bufhidden=hide
setlocal noswapfile
-
- " Change directory so "file [p4 diff]" doesn't try to cd somewhere.
- let l:cwd=getcwd()
- cd /
- file [p4 diff]
- cd l:cwd
+ file [p4 diff\]
" Switch back to the top window and put the cursor by the description.
wincmd k