Unix Technical Forum

vi - elvis problem

This is a discussion on vi - elvis problem within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Anyone know what would cause elvis to give the phrase "no previous char search" when trying to exit or ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 10:39 AM
David
 
Posts: n/a
Default vi - elvis problem


Anyone know what would cause elvis to give the phrase
"no previous char search" when trying to exit or write changes to
a file? I don't know what all was done during the session other
than the changes to the file can not be written and ":q!" doesn't
close it either. As soon as you hit the colon ":" to write or
quit it gives the phrase mentioned above.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.26 SMP i686 (GCC) 3.3.3
Uptime: 1 day, 3:19, 2 users, load average: 0.00, 0.00, 0.00
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 10:40 AM
Wong Kum Weng
 
Posts: n/a
Default Re: vi - elvis problem

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David wrote:
|
| Anyone know what would cause elvis to give the phrase
| "no previous char search" when trying to exit or write changes to a
| file? I don't know what all was done during the session other than the
| changes to the file can not be written and ":q!" doesn't close it
| either. As soon as you hit the colon ":" to write or quit it gives the
| phrase mentioned above.
|

It happened to me before, I just upgrade the elvis to the latest, now
i'm using elvis-2.1_4-i386-1.

- --

Best regards,

Wong Kum Weng, Andrew

+----------------------------------------------------------------------+

~ Keep away from people who try to belittle your ambitions. Small people
~ always do that, but the really great ones make you feel that you too,
~ can become great.
-- Mark Twain
+----------------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAf63h1bXyj+2X4JERAq/QAJ4xC4p5foroGLWcPnePRqZY4kt1agCfUBxV
RS1lTXNdQMZh4zLhVLBMIcs=
=fDiu
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 10:40 AM
David
 
Posts: n/a
Default Re: vi - elvis problem

Wong Kum Weng wrote:
>
> It happened to me before, I just upgrade the elvis to the latest, now
> i'm using elvis-2.1_4-i386-1.


Thanks for the idea but it didn't change anything. It still gives
the phrase "no previous char search" when pressing the ":" colon.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.26 SMP i686 (GCC) 3.3.3
Uptime: 1 day, 9:34, 1 user, load average: 0.05, 0.05, 0.08
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 10:41 AM
David
 
Posts: n/a
Default Re: vi - elvis problem

David wrote:
> Wong Kum Weng wrote:
>>
>> It happened to me before, I just upgrade the elvis to the latest, now
>> i'm using elvis-2.1_4-i386-1.

>
> Thanks for the idea but it didn't change anything. It still gives the
> phrase "no previous char search" when pressing the ":" colon.
>


I have even uninstalled both elvis and vim then reinstalled them
but nothing has changed. I still get the phrase mentioned above.
In fact I get the same phrase in both elvis and vim which really
has me puzzled as the system hasn't had any configuration changes
made to it in a long time.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.26 SMP i686 (GCC) 3.3.3
Uptime: 1 day, 20:04, 1 user, load average: 0.00, 0.04, 0.23
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 10:41 AM
raf
 
Posts: n/a
Default Re: vi - elvis problem

David wrote
in news:e2_fc.146373$gA5.1785662@attbi_s03 on 16.04.2004:

> David wrote:
> > Wong Kum Weng wrote:
> >>
> >> It happened to me before, I just upgrade the elvis to the latest, now
> >> i'm using elvis-2.1_4-i386-1.

> >
> > Thanks for the idea but it didn't change anything. It still gives the
> > phrase "no previous char search" when pressing the ":" colon.
> >

>
> I have even uninstalled both elvis and vim then reinstalled them
> but nothing has changed. I still get the phrase mentioned above.
> In fact I get the same phrase in both elvis and vim which really
> has me puzzled as the system hasn't had any configuration changes
> made to it in a long time.
>


Shot in the dark here, Do you have ~/.elvis? Why not copy the files from
/usr/share/elvis. You know the .arf, .brf, stuff.
--
Mike: "The Fourth Dimension is a shambles?"
Bernie: "Nobody ever empties the ashtrays. People are SO
inconsiderate."
-- Gary Trudeau, "Doonesbury"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 10:41 AM
Jonathan A.
 
Posts: n/a
Default Re: vi - elvis problem

On Fri, 16 Apr 2004 23:46:06 GMT, raf
<me9@privacy.net> appears to have said:

> David wrote
> in news:e2_fc.146373$gA5.1785662@attbi_s03 on 16.04.2004:
>
>> In fact I get the same phrase in both elvis and vim which really
>> has me puzzled as the system hasn't had any configuration changes
>> made to it in a long time.
>>

>
> Shot in the dark here, Do you have ~/.elvis? Why not copy the files from
> /usr/share/elvis. You know the .arf, .brf, stuff.


Given the fact that the problem is occurring with *both* elvis and vim,
I would suspect the ~/.exrc file. I had trouble with that the first
time I tried using both elvis and vim on the same system. They both
wanted to use the same ~/.exrc file. Try moving it out of the way and
starting elvis/vim.

If that works you could try modifying the lines of elvis.ini
(make a copy in /etc/elvis rather than modify the original)
where ~/.exrc is sourced. Just change ~/.exrc to ~/.elvisrc or
something... and rename the file in your home dir accordingly.
Then elvis would use ~/.elvisrc and vim would use ~/.exrc and
everybody would be happy.

If that's not it... try running elvis -V to get a verbose startup.
Maybe something in the output will tip you off to the problem.
(more "V's" yields more verbose output)

HTH,
Jonathan

--
Don't just hit reply. Email address is broken. Thank
your friendly neighborhood spammer. Email replies to:
user: jnthn1 domain: earthlink<dot>net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 10:44 AM
Eef Hartman
 
Posts: n/a
Default Re: vi - elvis problem

David <thunderbolt01@netscape.net> wrote:
> In fact I get the same phrase in both elvis and vim which really
> has me puzzled as the system hasn't had any configuration changes
> made to it in a long time.


Look at your .exrc file. You might have remapped the : key in that.
As far as I know that is just about the only init file elvis and vim
share (as it's the origibal ex/vi one).
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TW **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com