LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-29-2017, 03:27 AM   #1
Barkester
Member
 
Registered: Jan 2017
Location: SE Asia
Distribution: Arch
Posts: 67

Rep: Reputation: Disabled
Question Wants a "favorite editor". Don't have one. Whats the good one?


I've been having a holdup in some installs due to the following error requesting my favorite editor. it didn't seem to understand >

export VISUAL="whateverTF_is_already_running" go figure.

here's some output :

( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> Y

Please add $VISUAL to your environment variables
for example:
export VISUAL="vim" (in ~/.bashrc)
(replace vim with your favorite editor)

Both innoextract and tiger stop and whine about it with the same output as above.

What if vim is my favorite? Change anyway?

And if it must be replaced, what are the best (I like light) ones as there are a good many on the repository and I'm not really sure of the criteria I'm looking for?

Or in short :

Whats your favourite editor?

thanx
 
Old 06-29-2017, 03:48 AM   #2
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 553

Rep: Reputation: 277Reputation: 277Reputation: 277
I say, have some patience and stick with vim. I did this 2 years ago and today I'm happy. I can't live without vim. :-)
 
Old 06-29-2017, 09:41 AM   #3
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 422
Blog Entries: 16

Rep: Reputation: Disabled
Quote:
Originally Posted by Barkester View Post
I've been having a holdup in some installs due to the following error requesting my favorite editor. it didn't seem to understand >

export VISUAL="whateverTF_is_already_running" go figure.

here's some output :

( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> Y

Please add $VISUAL to your environment variables
for example:
export VISUAL="vim" (in ~/.bashrc)
(replace vim with your favorite editor)

Both innoextract and tiger stop and whine about it with the same output as above.

What if vim is my favorite? Change anyway?

And if it must be replaced, what are the best (I like light) ones as there are a good many on the repository and I'm not really sure of the criteria I'm looking for?

Or in short :

Whats your favourite editor?

thanx
If vim is the editor you like, then make sure to set the variable like the example. If you like something else, replacing 'vim' in the quotes with the name of the program you prefer.

Also, make sure to `source ~/.bashrc` after setting the variable, if you do place it in ~/.bashrc. Otherwise, paste the line into the shell and carry on.
 
Old 06-29-2017, 10:57 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,593
Blog Entries: 16

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
I like gvim. It gives you everything that vim does but with a menubar and toolbar as well.
 
Old 06-29-2017, 03:17 PM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,442

Rep: Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070
In a GUI, I like SciTE. At the command line, I use nano:
Code:
alias nano='nano -KSzwb'
I just never forced myself to learn vi/vim -- there's good reasons to do that (learn it, I mean).

Last edited by scasey; 06-29-2017 at 03:19 PM.
 
1 members found this post helpful.
Old 06-29-2017, 07:40 PM   #6
Barkester
Member
 
Registered: Jan 2017
Location: SE Asia
Distribution: Arch
Posts: 67

Original Poster
Rep: Reputation: Disabled
Thanx for the good news. all the others just seem like vim with sauce. I'll stick with vim.

Only thing that threw me was the weird end statement "(replace vim with your favorite editor)". Made it sound a requirement to change. Never seen it's like before. "(Place your favourite editor within the quotes)" would have been clearer.

Solved.
 
Old 06-29-2017, 08:23 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,526
Blog Entries: 28

Rep: Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452Reputation: 5452
Hacker Public Radio has a series on vim that you and others who want to get to know vim better might find helpful.
 
Old 06-30-2017, 02:20 AM   #8
corstar
Member
 
Registered: Feb 2005
Location: Perth, Western Australia
Distribution: Manjaro Linux
Posts: 30

Rep: Reputation: 2
Quote:
Originally Posted by scasey View Post
In a GUI, I like SciTE. At the command line, I use nano:
Code:
alias nano='nano -KSzwb'
I just never forced myself to learn vi/vim -- there's good reasons to do that (learn it, I mean).
Cool, I've never known about the -S switch (Enable smooth scrolling). Added to .nanorc
 
1 members found this post helpful.
Old 06-30-2017, 03:37 PM   #9
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,442

Rep: Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070
Quote:
Originally Posted by corstar View Post
Cool, I've never known about the -S switch (Enable smooth scrolling). Added to .nanorc
Glad to enlighten!

I didn't know about .nanorc! Syntax highlighting from the command line. I may get excited...


I find the -z switch (suspend) very useful, too. Saves having to get clear out of the editor to look up a file name.
 
  


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
"apt-get install" don't workink after the installation gconf-editor tobiaslziszka Linux - Software 1 03-01-2012 06:14 PM
Whats your favorite terminal text editor??? Necronomicom Linux - Software 8 12-16-2011 06:45 AM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
chrooted user: "write" and "talk" don't work. ldp Linux - Software 2 04-12-2005 02:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:24 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