Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Does opening file in another windows is critical to your workflow? Using <RET> instead of o will open file in same window and after killing the file buffer dired buffer will remain in current window.