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:
.
telnet users.deterlab.net
gives meSSH-2.0-OpenSSH_7.2 FreeBSD-20161230
@Mass, so it's probablynvi
, which is the defaultvi
on FreeBSD.<Esc><Esc>:q
? What are the exact steps to reproduce this?set cedit=^M
.:q<Esc>
in that situation will let you quit until you can fix your exrc. (And yeah, that's nvi.)