LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-22-2004, 07:51 PM   #1
shaun85
LQ Newbie
 
Registered: Oct 2004
Location: Lexington, SC
Distribution: Slackware 10
Posts: 13

Rep: Reputation: 0
Changing default vi viewer in slackware 10


Where do I look to change the default viewer from vi to pico in slackware 10?

Thanks,
Shaun
 
Old 10-22-2004, 08:05 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
you have to install pico before you can use it...............
 
Old 10-22-2004, 08:18 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,164

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
And once you've installed pico, set the EDITOR environment variable to pico. Most programms like vipw or visudo will respect $EDITOR and invoke pico instead of vi.
 
Old 10-22-2004, 10:08 PM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
To make it permanent, in your ~/.bashrc add the line
EDITOR=pico
 
Old 10-23-2004, 12:04 AM   #5
shaun85
LQ Newbie
 
Registered: Oct 2004
Location: Lexington, SC
Distribution: Slackware 10
Posts: 13

Original Poster
Rep: Reputation: 0
I'm trying to find the file that I need to set the editor to pico for default on all accounts. Pico is already installed.
 
Old 10-23-2004, 02:47 AM   #6
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
/etc/profile
 
  


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
make irfanview default image viewer ebsbel Linux - Software 6 02-10-2008 01:34 PM
Making QXINE my default mpeg viewer in Firefox. Fogeytron Linux - Software 0 01-21-2005 10:14 PM
setting acroread as default PDF viewer mecherd Linux - Newbie 3 04-15-2004 04:27 PM
Video Files Viewer for Slackware arkan Linux - Newbie 2 07-08-2003 02:01 PM
changing default WM pmh6310 Linux - Newbie 5 06-11-2003 06:00 PM


All times are GMT -5. The time now is 05:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration