Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 11-23-2010, 04:33 PM   #1
Registered: Aug 2008
Location: Seattle
Distribution: Ubuntu
Posts: 79

Rep: Reputation: 0
vim, nvi, and making them work together...

A few days ago I tried editing a text file with nvi rather than the Linux default, vim. For me, vim has too many improvements. At any rate, because I had begun editing with vim, when I wrote the file to disk [ :w ] I got a surprise warning that I had truncated the file. I had been using 8-bit bytes rather that the older vi's version. I had removed the file~ to clean up the directory I was working and lost an hour's worth of work.

In my ~/.zshrc I have the LC_CTYPE [&c] set to something like us_US.UTS-8. Is this causing vim to use 8-bit mode. If I switch back to the ISO.8859-1 as my character default will that cause vim and and nvi to work interchangably? And how about the many new files I have written in 8-bit mode?
I've hacked several things in C with vim and don't want to lose them!

thanks in advance, you guys.
Old 11-28-2010, 07:59 AM   #2
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 673

Rep: Reputation: 94
ISO.8859-1 is 8 bit as well ASCII is 7-bit. AS much as I know nvi can't handle 8-bit characters. Take a look at elvis. It comes a vi clone on Slackware. It can do 8-bit characters. But test it yourself and don't take my word on it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vim: making him not to use colours. stf92 Linux - Newbie 1 11-09-2010 10:06 PM
making Bash operate like VIM jus71n742 Programming 10 02-07-2009 11:06 AM
LXer: Tips: Making Vim easy LXer Syndicated Linux News 0 04-11-2007 05:16 AM
Where can I find nvi package mathewzhao Slackware 2 07-06-2006 08:12 AM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-17-2006 11:54 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration