When I'm using the terminal feature on nvim sometimes I run the last command again out of habit (thinking that I'll re-run the unittests for what I'm coding at the moment or something), but the latest command in my shell's history is something like nvim path/to/my/project-folder
Naturally, what happens is It opens nvim inside of the nvim terminal. I've found it's fairly easy to exit from the inner nvim, but I was wondering if there's a better approach here.
Would it be advisable to just make vim exit when this happens? How would I do that?
!!to run the last command? If so, get in the habit of using<Esc>kinstead and you'll know what you're about to execute before you execute it. :) (This assumes you're usingset -o vi.) – B Layer Nov 16 '21 at 17:11