enter image description here

When using nvi I have a file that I want to exit but everytime I use :q it just opens this thing and I can't exit out of it. Does anyone know what it is and how to get rid of it?

Note: this is nvi and not vim, so hasn't been caused by accidentally typing q: or by a mapping to q:.

  • 1
    The solutions in that thread don't work. <C-w> q just makes a smaller version of that windo popup.
    – smmr
    Apr 9, 2018 at 4:24
  • this doesn't look like vim at all, how did you get here?
    – Mass
    Apr 9, 2018 at 4:26
  • 2
    telnet users.deterlab.net gives me SSH-2.0-OpenSSH_7.2 FreeBSD-20161230 @Mass, so it's probably nvi, which is the default vi on FreeBSD. Apr 9, 2018 at 5:31
  • 3
    That being said, it's not clear to me what exactly I'm looking at? Did you try pressing <Esc><Esc>:q? What are the exact steps to reproduce this? Apr 9, 2018 at 5:35
  • 1
    What's your .exrc (or .nexrc)? Sounds like you have set cedit=^M. :q<Esc> in that situation will let you quit until you can fix your exrc. (And yeah, that's nvi.)
    – Antony
    Apr 9, 2018 at 8:31


Browse other questions tagged or ask your own question.