LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Wants a "favorite editor". Don't have one. Whats the good one? (https://www.linuxquestions.org/questions/linux-software-2/wants-a-favorite-editor-dont-have-one-whats-the-good-one-4175608826/)

Barkester 06-29-2017 03:27 AM

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

aragorn2101 06-29-2017 03:48 AM

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. :-)

Myk267 06-29-2017 09:41 AM

Quote:

Originally Posted by Barkester (Post 5728591)
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.

hazel 06-29-2017 10:57 AM

I like gvim. It gives you everything that vim does but with a menubar and toolbar as well.

scasey 06-29-2017 03:17 PM

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).

Barkester 06-29-2017 07:40 PM

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.

frankbell 06-29-2017 08:23 PM

Hacker Public Radio has a series on vim that you and others who want to get to know vim better might find helpful.

corstar 06-30-2017 02:20 AM

Quote:

Originally Posted by scasey (Post 5728874)
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

scasey 06-30-2017 03:37 PM

Quote:

Originally Posted by corstar (Post 5729038)
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.


All times are GMT -5. The time now is 03:44 PM.