jalvesaq / Nvim-R

Vim plugin to work with R
GNU General Public License v2.0
968 stars 125 forks source link

Quitting R returns to closed file buffer #722

Closed vvarik closed 9 months ago

vvarik commented 1 year ago

If I do:

  1. nvim script.R
  2. <localleader>rf to open R
  3. :wq (after a while) to close script.R
  4. q() in R buffer

Expectation: nvim session ends Happens instead: I will be returned to script.R buffer and I need to close it (:q) again.

How to achieve the expected behaviour?

nvim-r 0.9.13, neovim 0.6.1, Ubuntu 20.04.6

jalvesaq commented 1 year ago

I get the same behavior if I manually start a terminal in Neovim. Example:

  1. nvim script.sh
  2. :split
  3. :terminal
  4. :wq (after a while) to close shell script
  5. exit in the shell buffer

So, if you find Neovim commands with the desired result, I will change the corresponding code in the function SplitWindowToR() in R/nvimbuffer.vim.

jalvesaq commented 9 months ago

Nvim-R is being superseded by R.nvim, a new project that will be inaugurated in a week at the R-nvim organization. Please, check out tmp-Nvim-R and help us to find the last remaining bugs before R.nvim inauguration. When the project is officially started, you will be able to open issues there and request new features.

Nvim-R will remain alive as a feature-frozen project for Vim users. If you want to know the reason, please, see this discussion.