What editor does everyone use?


Poll: What is your preferred text editor?
Poll Options
What is your preferred text editor?

 
Thread Tools Search this Thread
Top Forums Programming Open Source What editor does everyone use?
# 71  
Old 06-15-2006
I am proud to say that I use TECO.

Not really.

I always use vim. Sometimes I'll mess around with other editors to see what they can do, or how they do the things they do, but whenever I want to edit anything, my hands automatically type "vim". That does mess me up sometimes when I am on a new or different system that does not have vim.

Even when I first started to use Unix-like systems I always preferred vi.

Last edited by mgayoub; 06-15-2006 at 10:42 AM..
# 72  
Old 06-15-2006
Notepad 2

A great little program. Its basically notepad with usefull coding tools (syntak schemes, bracket matching, line numbering) and some other features (small toolbar), etc. Its still small, doesn't need installed and is simple to use. Great for PHP, Perl, etc. (oh and its not actually 'Notepad 2' since Microsoft didn't create it - suprisingly they're yet to sue the person who did)

If its a non script language like Java or soemthing I'll use a program dedicated to that language. For HTML, CSS, and sometimes PHP I can use Notepad 2, but Dreamweaver is better if its on the computer I"m using.
# 73  
Old 06-16-2006
Quote:
Originally Posted by mrprietzel
Glad to find this discussion since it deals directly with something that has been vexing me for a while.

I'm fairly new to unix and was disappointed when unix friends told me "just use vi" when I asked for the best way to edit and view files on our solaris boxes.

I have come to the conclusion that I need 2 editors in the unix world

Editor #1 - for use when I am writing code, scripts, etc. In other words editing that is going to take me more than a minute. For this I use Jedit

Editor #2 - Used for quickly editing, searching and viewing files. I frequently need to edit a single line in a file, or need to view the file or search its contents (I know about grep, but I like to see the results of my search in the context of the rest of the file). For Editor #2 I'm not sure what to use. I have almost come to the conclusion that I need to make peace with vi and just accept it, but I find it so frustrating that it takes me longer to check my cheat sheet to find the right commands than it does to actually do the editing. My requirements for Editor #2 are:
-Easily edit, view, and search text files.
-Reasonable amount of certainty that the editor is available. My job requires that I connect to different boxes and often su to a different userid. It is frustrating to learn to use a tool and then it is not available.
-Using the editor is easy to remember. I only need editor #2, two or three times a month. I feel like I am constantly relearning vi, and feel like I'm flying blind when I get lost between command mode and edit mode.
-Needs to run in the console, i.e. doesn't run in X, which for me takes too long to load. I think our network is slow and our boxes are distributed.
-I only need basic functionality, in other words I would trade ease of use in exchange for the advanced features in vi.

Can anyone make a recomendation for Editor #2 or do I need to make my peace with vi Smilie.

I started using pico and liked it a lot but a co-worker told me not to trust it as it truncates lines over 80 characters. Too bad since I really liked it. Anyone know if there is a fix or work around for this.

Basically I'm looking for something like pico or like "edit" from the dos prompt.
If you want something that will behave (almost) the same everwhere and always be there then you'll probably need to make your peace with vi. When you eventually do so, you will probably not use #1 anymore, but rather an extended version of vi.
# 74  
Old 06-21-2006
vi is massively powerful with very little footprint. once you learn vi you can edit a file faster in it than just about any other text editor.

if you are a UNIX admin, you NEED to learn vi. I have NEVER run across a *NIX system (or BSD) that did not have a version of vi. one time i typed #vi somefile on a system and it said "vi not recognized as an internal or external command" and I almost fainted. I had already begun editing the file, and had a bunch of garbage on the screen.

luckily, i typed it in again and it worked.

the more tricks you learn in vi, the better it will feel. a master of vi can open edit and save a file in vi before an opponent has even opened the file in notepad.

I am not a master of vi yet, but i hope to acheive that enlightened state of mind at some point in my existence.

I hope by constant vigilence to achieve moksha, or liberation from the wheel of life and existence to a higher plane in which the perfect use of vi is finally realized.
# 75  
Old 06-26-2006
vi rulez.

IMHO Vi it's the best editor you can use.
That's because:
  • It's fast
  • It's straightforward (vi will do exactly what you said it do)
  • It's extensible
  • It's well documented
  • It's powerful
  • It's tiny
  • It follows the UNIX philosophy: smaller is better
  • It's the only editor I'm sure to find on every UNIX (or UNIX-like) system


I will always use vi
I love vi


Freddie
# 76  
Old 06-28-2006
Quote:
Originally Posted by google
VI and VIM ( I am not a big fan of the VIM colors - I turn them off). I also use EditPlus from time to time.
How to swith on and off the colour in the VI editor .Also what is the difference b/w VI and VIM.
# 77  
Old 06-28-2006
vi is the original editor, coded in 1976 Bill Joy.
Vim is a vi clone, coded by Braahm Molenar. Vim is more powerful than vi, and is more extensible.
There are a lot of vi clones on the internet, but Vim is the best among them.
See also: http://vim.sourceforge.net/6k/features.en.txt for a short explanantion about what Vim is.


Freddie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Not able to use @ in VI editor

Hello All, Need one Help for one issue. I am using a French Keyboard, so @ sign is on key 0 and i have to use right Alt + 0 to print it. It is working everywhere but not inside Vi editor. I can type @ in shell, in notepad. But inside Vi editor it is not working, another problem is that if... (2 Replies)
Discussion started by: yadavricky
2 Replies

2. Shell Programming and Scripting

About vi editor

How can ` character be printed on vi editor ? empl_id=`echo $line | awk ' { print $1; } '` (2 Replies)
Discussion started by: senem
2 Replies

3. Solaris

Epic Editor was not able to obtain a license for your use. Feature Epic Editor :Licen

Epic Editor was not able to obtain a license for your use. Feature Epic Editor :License server is down (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

4. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

5. UNIX for Dummies Questions & Answers

Pasting text in VI editor from a different editor

Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies

6. HP-UX

vi editor

I am new in hp ux and I want work with vi editor, but in hp ux vi editor the backspaes and del keys doesn't work. how can I enable them. thanks (3 Replies)
Discussion started by: hkoolivand
3 Replies

7. UNIX Desktop Questions & Answers

best editor

We work on AIX 5L We use vi as text editor (only scripts to create and modifiy). What do you think of emacs ? Where can I find it ? Do you know better text editor for scripts ? Thank you for all answers. (1 Reply)
Discussion started by: annemar
1 Replies

8. UNIX for Advanced & Expert Users

vi editor

Hi, how can I add at the begining and at the end of all of the lines of my text file in VI editor ? Many thanks before. for exemple if in my file i have line 1 line 2 I want to have : start line 1 end start line 2 end (3 Replies)
Discussion started by: alain123456
3 Replies

9. HP-UX

instead VI editor - which one?

I'd like to find some editor for HP-UX, something like notepad, but not VI editor. Can someone have some ideas which one? thx (6 Replies)
Discussion started by: diamond
6 Replies

10. Shell Programming and Scripting

Vi editor ?

Hello everybody, My question is: how to add /tmp/work at the end of line in vi editor. my file looks like: cp file1 cp file2 cp file3 **** I need to add " /tmp/work" at the end of each line. I tried this :%s/$/" /tmp/work" and this :%s/$/\ /tmp/work\/ but it does not work. (2 Replies)
Discussion started by: billy5
2 Replies
Login or Register to Ask a Question