The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Vi editor jazz High Level Programming 2 05-08-2009 08:46 AM
regarding vi editor girish_shukla SCO 4 11-19-2008 10:36 PM
Epic Editor was not able to obtain a license for your use. Feature Epic Editor :Licen durgaprasadr13 SUN Solaris 1 10-13-2008 07:39 AM
set EDITOR=vi -> default editor not setting for cron tab aarora_98 Shell Programming and Scripting 6 09-13-2008 02:01 AM
Pasting text in VI editor from a different editor harishmitty UNIX for Dummies Questions & Answers 10 09-10-2008 06:22 PM

View Poll Results: What is your preferred text editor?
vi or vi clone such as vim 1,144 72.68%
emacs 87 5.53%
notepad 83 5.27%
EditPlus 69 4.38%
UltraEdit 66 4.19%
pico 31 1.97%
nano 45 2.86%
mcedit 8 0.51%
nedit 22 1.40%
gedit 8 0.51%
TextPad 11 0.70%
Voters: 1574. You may not vote on this poll

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 10 votes, 3.70 average. Display Modes
  #253 (permalink)  
Old 05-21-2009
SilversleevesX SilversleevesX is offline
Registered User
  
 

Join Date: May 2009
Location: Northeast USA
Posts: 48
The witch ("which") method works better than most

Quote:
Originally Posted by sunray View Post
firstly how to know that which editor present on our system.

Is there any command to find out?
Try "which" followed by the name of some of the more common ones (emacs, vi, vim, nano, pico), one at a time to keep the returned strings simple. I find this method safer than just arbitrarily entering a command (the name of one) and finding out I can't exit it without terminating the shell session (or worse).

Whichever one comes up with a path to an executable, like /usr/bin/emacs2 instead of a lot of garbage telling you where editor x isn't in your execution or environment paths, that's the one you have.

And you may have more than one. Try them out and see which one you're more attuned to.

BZT

Last edited by SilversleevesX; 05-21-2009 at 09:33 AM.. Reason: Remembered why I "Which"
  #254 (permalink)  
Old 05-26-2009
filmjbrandon filmjbrandon is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 3
I use vi on all system where I have shell, but I also love KomodoEdit - it's free, and they support "vi bindings" so I can have the best of all things... including code completion/hints, templates, projects, etc. while still being able to maneuver efficiently using vi commands.
  #255 (permalink)  
Old 06-14-2009
ramnet ramnet is offline
Registered User
  
 

Join Date: May 2009
Posts: 3
Quote:
Originally Posted by m_chandroo View Post
for me its vi...but whicever editor the user is learing first & using for some (considerable) time, then that will become their first editor......
that's so true. i started using nano because it's the suggested editor in debian linux. it's likely the easiest editor to startout with for console use since all the common commands are shown in the editor so you can't forget how it works - even the old ms-dos edit.com wasn't that easy (if a unix clone version of that comes out i may just go back to that blue and white interface - the blue screen of death that you can edit .

vi is fun to play with though - although the only thing i can seem to remember is :q to quit - or is it :x to exit? i forgot how vi works long ago when red hat 7 killed my system and i found nano+debian. of course i only used vi mabe a dozen times - i've used nano several thousand times at least.

if i need to learn how an editor works, it's no longer a simple editor and i won't bother. editors should be simple and just work. an editor should be like "more" or "less" with a curser and the ability to save and perhaps the ability to tell me what line i'm on, but let's not get too fancy. i shouldn't have to use "man vi" everytime i forget something that should be obvious.

of course i have respect for the vi folks - although my favorite retro editor is to just use "sed" - very quick.
  #256 (permalink)  
Old 06-29-2009
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,522
I found a pretty good editor when I am on my XP box called Notepad++

I've been writing some PHP/MySQL code on my XP laptop, and it works pretty good
  #257 (permalink)  
Old 07-20-2009
ilikecows's Avatar
ilikecows ilikecows is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 110
it depends

I use a variety of editors depending on where im at and what im doing. I use vi or preferably vim for light things like editing configuration files or quick and dirty scripts. If I am doing something heavier such as writing a 1000+ line perl program I will use a nice graphical programmers editor such as nedit, gedit, or jedit. I recommend any new UNIX user and especially professionals to be able to at minimum do basic things with 2 terminal based editors such as vi or emacs. Investing a little bit of time learning to use awk and sed has yielded a ridiculously large rate of return on my time.
  #258 (permalink)  
Old 07-22-2009
drewrockshard drewrockshard is offline
Registered User
  
 

Join Date: Mar 2008
Location: Plano,TX
Posts: 33
VIM all the way.
  #259 (permalink)  
Old 07-29-2009
cfajohnson's Avatar
cfajohnson cfajohnson is online now Forum Advisor  
Shell programmer, author
  
 

Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,319
Quote:
Originally Posted by dangral View Post
Learn vi and you will love it. I don't know anyone who *really* learned vi and hates it.

vi users I know say that if they had to start over, they'd use emacs rather than vi.

I don't wish vi on my worst enemy!
Sponsored Links
Reply

Bookmarks

Tags
learn unix, linux, linux commands, regex, regular expressions, shell script, shell scripting, solaris, unix commands, unix scripting, unix scripting basics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0