LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 11-23-2010, 05:33 PM   #1
kline
Member
 
Registered: Aug 2008
Location: Seattle
Distribution: Ubuntu
Posts: 74

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, 08:59 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

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.
 
  


Reply


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 11:06 PM
making Bash operate like VIM jus71n742 Programming 10 02-07-2009 12:06 PM
LXer: Tips: Making Vim easy LXer Syndicated Linux News 0 04-11-2007 06:16 AM
Where can I find nvi package mathewzhao Slackware 2 07-06-2006 09:12 AM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-18-2006 12:54 AM


All times are GMT -5. The time now is 10:04 PM.

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