Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nvi]

A free and "bug-compatible" clone of Bill Joy's original `vi`. It first appeared in 4.4BSD.

1
vote
0answers
65 views

`nvi` use contents of register in ex command

I'd like to be able to get the contents of a register in nvi, such as using b"wye to yank a word into the w register and then invoke a shell command with the current word in it. Currently, I have ...
2
votes
0answers
100 views

:q will not let me exit vim [closed]

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 ...
0
votes
0answers
84 views

Vim to behave like nvi when opening line in empty buffer

I want to Vim to behave like nvi when opening a in an empty buffer. This is an empty buffer: ---------------------------------------- ~ ~ ~ ~ ---------------------------------------- After typing ...
1
vote
1answer
687 views

Position cursor at end of line in insert mode

(This question pertains to nvi instead of vim.) To facilitate editing, I created the following mappings map! ( (?)@^[F?xi map! [ [?]@^[F?xi map! { {?}@^[F?xi so that entering ( will insert (|)@, ...
3
votes
1answer
323 views

specifying a recovery file in nvi

I have an nvi session that got interrupted, and I'd like to recover my edits. When I type vi -r, it tells me "no files to recover." But there is a recovery file in /var/tmp/vi.recover, and when I ...
1
vote
1answer
101 views

I get the error “./en_US.UTF-8: No such file or directory” when starting nvi

I'm using nvi on Mac OS X 10.10.3, installed from MacPorts. Whenever I start the editor, the following message is displayed in my console: ./en_US.UTF-8: No such file or directory I'm just curious ...
13
votes
3answers
6k views

Can I undo multiple times in nvi and/or the original vi?

Sometimes I'm on a system without Vim, and use the default nvi (BSD systems) or the original vi (Arch Linux). There are quite a few differences, but the largest annoyance is that I can undo only my ...
17
votes
2answers
2k views

What is the relation between vi, nvi and vim?

On some unixes sometime I found a command named nvi. It was a vi-like editor, without much of its functionality. Maybe it was a fork of the old vi? Anyways, which vi versions are a fork of the others,...