LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-30-2003, 09:55 AM   #1
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Rep: Reputation: 15
simple vi (vim) settings


im an old time unix head

i want vim, to act like OLD System-5 vi

No colors, no --insert--, NO Nothing ....etc
AND MAINLY, "dont remember where you last were, in ANY file"
(open ALL files, at LINE 1)....

im looking for settings, to make vi(m), as "vanilla" as is possible

how can i accomplish this

thanks
 
Old 09-30-2003, 09:52 PM   #2
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
Type:

:set compatible

while in command mode, or start vim with -C

Lyle
 
Old 09-30-2003, 10:09 PM   #3
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Original Poster
Rep: Reputation: 15
i really appreciate your help BUT
it didnt totally work....
im using version 6.1, with redhat....
whether i use vim -v filename, or vim -C filename,
it still opens, at the line, i left, the last time i edited the file....
 
Old 09-30-2003, 11:00 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you could use

vim -C +1 filename
 
Old 09-30-2003, 11:22 PM   #5
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Switch to Slackware. It opens up at the begining everytime.
 
Old 10-01-2003, 12:25 AM   #6
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
when in doubt
man vim

$ vimtutor

is a nice program too
 
Old 10-01-2003, 06:58 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
ehdwuld "when in doubt man vim"
Since you've described yourself being "an old time unix head" I lean to giving the same reply: you should know how to find the information.
"set history=0" in your ~/.vimrc should stop it from remembering lines, "nohlsearch" shouldnt highlight searchterms, and "syntax off" should keep it from highlighting code. *If you're using X11 and Gvim, then check ~/.gvimrc.
 
Old 10-01-2003, 07:42 AM   #8
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Original Poster
Rep: Reputation: 15
>>you should know how to find the information

well, i didnt.......AND, i didnt think, that a reply like that was
all too nessessary either....
ive known how to find the information, for nearly 20 years.

The problem with searchin for HISTORY,
is, i didnt know , it was called "history"...

This is .vimrc:
:set nohlsearch
:set compatible
:set ai



anyway, -C +1 works just fine..... thanks

ill also try that histore line, in .vimrc
 
Old 10-01-2003, 08:46 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
>>you should know how to find the information

well, i didnt.......AND, i didnt think, that a reply like that was
all too nessessary either....
ive known how to find the information, for nearly 20 years.

...and I apologize, without reservations, for any grievance I have caused you by questioning your experience and ability to search, access and comprehend the documentation provided by a mature and well-documented operating system.
 
Old 10-03-2003, 10:42 AM   #10
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Original Poster
Rep: Reputation: 15
More Issues:
my problem, is NOT reading the manual,
its more like "What is this FEATURE (Action) called"

iv aliased vi="/bin/vi -C +1"
and i have compatable in .vimrc

NOW, im getting this "line compleation"
when i type 'mydomain' it fills it in as 'www.mydomain.net'

is there a list, and definition, of all the "set" options

(i am looking in vim/docs)
OH, i just want vim, to act like vi......

is there some replacement, i can download, without All These Wonderful Features
 
Old 10-03-2003, 10:46 AM   #11
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Have you checked www.freshmeat.net, I beleive that there is a CL editor that acts like vi (no candy), but I can not remeber the name. If you are having problems finding it let me know.
 
Old 10-03-2003, 11:22 AM   #12
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
ummm can't you just use vi???
 
Old 10-03-2003, 11:29 AM   #13
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Original Poster
Rep: Reputation: 15
>> ummm can't you just use vi???

im not sure, just what you're asking ?
(you are aware, that , at least in redhat 8.0,
vi, is vim (or, is it vim, is vi))
(or is there vim, AND vi)

when i SAY VI, i mean old non friendly vi, as opposed to vim
 
Old 10-03-2003, 11:34 AM   #14
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
ok then nevermind
 
Old 10-03-2003, 11:44 AM   #15
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
I understand that you are wanting vi to act like vi did/does in older UNIX versions. The vi in Linux is not the vi in (let's say) HP-UX. Since, most apps written for UNIX are under the UNIX license. Most everything that you get in Linux is GPL'd.

So you probually are not going to get the vi that is on the 1990 AIX server at work. You will ahve to get a clone. Most vi clones have all the candy. That's why I said do a search on freshmeat and see if there is a clone.

Here is a link that I think to a vi clone that you might like, http://ex-vi.berlios.de/.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
encryption with Vim (vim -x) mikshaw Linux - Software 2 03-07-2007 09:00 AM
Strange Vim settings under Slackware 10 Lars79 Slackware 5 08-02-2004 07:50 AM
Simple problem FSTAB File - User settings 'uid=xxx' crazyswede Linux - Networking 7 02-19-2004 03:59 PM
How to keep restorable monitor and 3D settings tar backup simple save configurat zaphod111 Linux - Newbie 2 11-08-2003 07:39 PM
simple question: where do the networking settings locate? gsbarry Linux - Networking 1 02-08-2003 12:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:20 AM.

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
Open Source Consulting | Domain Registration