Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 29
Hi, I guess this has been here before. But ok. What do you prefer when you are programming? Emacs or Vi? And which is more like a IDE? Like can ...
  1. #1
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422

    Emacs vs Vi?

    Hi, I guess this has been here before. But ok.
    What do you prefer when you are programming?
    Emacs or Vi?
    And which is more like a IDE? Like can add the function to compile on one key press and open more files at once.
    And enables to select text and then copy/move it?

    Cheers,
    Robin
    New Users, please read this..
    Google first, then ask..

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    949
    I must admit I use gedit. It has the same kind of syntax colouring as vi and is much easier to use.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,228
    As for which a person prefers, that question triggers debates like you've never seen. Both vi and Emacs have their strengths. As a general rule, vi tends to be more minimalistic, while Emacs allows for an incredible degree of development and customization. I personally prefer vi, because I feel that it is better at being a text editor, but there is a ton of support for each. Try them both and see what you like!

    Neither of them is an IDE. If you want an IDE, I suggest you use an IDE: there is always Anjuta or KDevelop for C/++, and Eclipse for Java. Both vi and Emacs are capable of having many files open at once, in separate buffers (and both can display more than one buffer at a time). Text can also be selected in both. You can use gVim to get mouse abilities in Vim, and Emacs has the mouse already. However, both vi and Emacs allow you to use the keyboard to select text by using marks.

    I know that Emacs can run gcc, make, gdb, etc. all from right within the editor. vi can also be set up to run make and/or gcc for you. I have never done this process with either editor, however, so I can't speak on it.

    I suggest that you find some tutorials on using both editors, and try them out.
    DISTRO=Arch
    Registered Linux User #388732

  4. #4
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    I use neither to program. I write software in Eclipse. If I want to just edit a quick configuration file, vi works, and it's almost guaranteed to be installed on any UNIX or UNIX-like system.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  5. #5
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,082
    Quote Originally Posted by techieMoe View Post
    vi works, and it's almost guaranteed to be installed on any UNIX or UNIX-like system.
    That's exactly why I started off in the beginning using vi, and I've not found any reason to change.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  6. #6
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    I started off with vi so I guess I'd say I prefer it, though my time with emacs is very limited. For a while now I've used joe and love it. To me, it's the simplest command line editor to use.
    Linux Mint + IceWM Registered:#371367 New Members: click here

  7. #7
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    vi - learn your way around and use it everywhere.

    Linux, *BSD, HP-UX, Solaris, etc.

    It's part of the 'base system' in all of those.

    ------------------

    P.S. I've written various scripts/programs in sh, bash, python, perl, and java using vi. You don't need an IDE for writing sysadmin-related apps.

  8. #8
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,112
    Anybody remember a little rant about ed?

    Code:
    golem> ed
    
    ? 
    help 
    ? 
    ? 
    ? 
    quit 
    ? 
    exit 
    ? 
    bye 
    ? 
    hello
    ? 
    ? 
    eat flaming death 
    ? 
    ^C 
    ? 
    ^C 
    ? 
    ^D 
    ?
    http://wwwth.mppmu.mpg.de/members/ha...eOfEditor.html

  9. #9
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    Thanks for all the help.
    My problem is that I only have a Console on this pc and can install in no-way X11 or Kdrive.
    So a Graphical GUI (or even IDE) cant and wont work.
    But well I dont really need a IDE since I dont use all the functions of it.
    At to moment I use nano since I like it. But its not powerfull.
    But what Id like to see in a texteditor is:
    Cut/Copy
    Syntax Hilighting
    One Button Exec Command
    Auto-Text Hilighting on known File type
    Up to 4 Windows
    Open Files bar (Which is closable)

    Can vi or Emacs (or anyother) do that?
    I never used either propher. And well. Nano.. for that?

    Cheers,
    Robin
    New Users, please read this..
    Google first, then ask..

  10. #10
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    I started with vi and now mostly working gedit.
    I used to switch between vi and gedit ..both works fine for me...
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •