Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was wondering the difference between these text editors and which is best used with ubuntu?

What are each of them good for? Are there better ones?

share|improve this question

closed as too broad by Braiam, Eric Carvalho, mikewhatever, Lucio, i08in Apr 7 at 4:27

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

3  
Please make this a community wiki [1]meta.stackexchange.com/questions/11740/… –  txwikinger Aug 4 '10 at 19:25
1  
Are we just discussing console editors? –  Nathan Osman Aug 5 '10 at 1:05
    
Community Wiki'd –  Marco Ceppi Sep 16 '10 at 20:14
add comment

17 Answers 17

up vote 18 down vote accepted

Nano is the easiest to use and learn. A lot of people will swear by Vim and Emacs but Nano is a very good text editor. Nano is good for editing a config file but if you are going to program you'll be better off using Vim or Emacs. Nano supports highlighting. But this is very subjective.

Everyone is going to have their favorite editors for some reason. Find the one that you like the best and use it.

share|improve this answer
5  
There is an important difference between "easy to use" and "easy to learn". In general, powerful editors like Vim and Emacs are easier to use than a simpler editor, once you have learnt how to use them. Thus, it's a matter of return on investment. Are you going to do a sufficient amount of text editing to justify investing time in learning a more powerful editor? –  Jeromy Anglim May 14 '11 at 7:09
add comment

I love Vim. It's so powerful and effective and perfect in every way. However, most of the time I just use gedit, because I'm not as powerful and effective as Vim.

share|improve this answer
2  
how can you call vim "perfect in every way" if you are more "powerful and effective" in gedit? –  Bala Clark Aug 5 '10 at 13:54
10  
My own personal weaknesses do not in any way diminish the perfection of Vim. –  DLH Aug 5 '10 at 14:51
7  
Is a fine wine any less fine if tasted by someone who prefers the sweetness of grape soda? –  DLH Aug 5 '10 at 15:15
2  
Is 2001: A Space Odyssey any less an artistic masterpiece if watched by someone who prefers the fast pacing of Transformers? –  DLH Aug 5 '10 at 15:17
3  
You Sir/Madam, made my day! –  Paul Hänsch Oct 27 '12 at 23:31
add comment

vi can be found on virtually any linux system, including your embeded devices. It's also very powerful (once you've learned how to use it)

share|improve this answer
    
Another advantage of vim is that it is portable. –  pablofiumara Nov 5 '13 at 11:46
add comment

Another good one to use is Geany, found in the Ubuntu package manager or at geany.org . Has really good features and the built-in terminal window is really nice. I use it for most programming projects. I use VIM alot too, mostly when ssh'd into a server. The built-in Gedit is useful for quick edits and config files.

share|improve this answer
    
This is definitely my favorite code/text editor. I use it for almost all my programming. –  Tommy Brunn Aug 4 '10 at 21:04
    
+1 For being so right. Geany is the best editor I have found for code when working on a lot of files. I know you can get the same functionality in VIM but it isn't as easy to navigate as Geany. I use VIM for everything else. –  Richard Holloway Aug 4 '10 at 22:20
    
+1 For naming my top three text editors. –  DLH Aug 4 '10 at 22:59
add comment

Simple answer is ...

Nano is a simple text editor.

Emacs is a full fledged text editor with features for programming. This one is usually easier to learn but is still confusing. This is because advanced features are key combinations like crtl + e (goto end of line).

Vim is like Emacs only it uses a much different form of input. Vim is modal meaning that each key means something different in a different mode.

Basically, Nano is for normal users. Emacs and Vim are for programmers. Take your pick (I'm not taking Vim vs Emacs side for this post lol)

share|improve this answer
    
Well summarized! –  andol Aug 4 '10 at 20:15
4  
+1, however, "Emacs and Vim are for programmers" ?? I use emacs all the time for writing LaTeX documents. –  steabert Mar 25 '11 at 22:51
add comment

I recommend gedit. It's got color coding for programming code which makes everything from HTML/CSS to PHP easier to read and edit. Emacs can do it, but it takes some effort to learn how to set up and use. Gedit is usable on your first attempt with no documentation required.

share|improve this answer
1  
I use Gedit to code quite complex projects right now. It's simple at the beginning, but it has a lot of plugins that let you add functionality. As an example I have a left panel with a project browser, a Find in Files utility and I python syntax analyzer. On the right panel I have a class browser and the documents view. In the text area I have 3 word completion system (including snippets) and a bunch of helpers (like comment/uncomment blocks). Well, you get the idea. It can grow to be a quite complex editor. –  Javier Rivera Aug 5 '10 at 11:19
1  
BTW: I noticed that this post is a "comunnity wiki". Should I just edit the original answer instead of commenting it?. –  Javier Rivera Aug 5 '10 at 11:20
    
@Javier what do you use for your class browser? I'm yet to find an plugin that is simple to install. –  Bala Clark Aug 5 '10 at 13:56
    
@Bala: Class Browser 0.3, you can find it as gedit-class-browser on the repositories. –  Javier Rivera Aug 6 '10 at 13:50
add comment

I know that this is not a "manly" terminal text editor, but gedit is nice. You can make gedit looks and feel a little bit like TextMate. This article is a bit dated, but will still give you the basic idea... http://rubymm.blogspot.com/2007/08/make-gedit-behave-roughly-like-textmate.html

share|improve this answer
    
I'm another gedit fan. It is light weight, has a lot of useful extensions and is also cross platform now and available for Mac & Windows. –  Bala Clark Aug 5 '10 at 13:55
    
By adding plugins from the repo, and enablung them, gedit really becomes a very powerful editor. –  apoorv020 Mar 1 '11 at 9:03
add comment

Emacs is pretty good. It has syntax highlighting and supports extensions

and is extensible through its embedded dialect of Lisp (elisp). It also has modes for many statistical programs, support for tex, a calendar, mail reading utilies, tetris and even a psychiatrist. Emacs (or Vim, but thats less good for stats) are worth learning as they are both cross platform and support almost every programming language in the world.

share|improve this answer
add comment

Vim takes time to learn, but by the time you've got the hang of it (not just which key to hit when, but getting used to looking at the text that way), you stop about how to type and you can really focus on what to type. It becomes so natural that regular text editors will too hard to use.

Use gvim and choose a theme you like a lot before you start learning, it can make it a more pleasant experience. Eventually you'll find yourself composing your emails in vim!

(Ten-finger touch typing makes vim much easier to learn, so you may like to spend an hour or two with gtypist before trying vim, if you aren't already comfortable with touch-typing)

share|improve this answer
2  
If by theme you mean colorscheme, I suggest beginners pick two: one for normal mode and one for insert mode, making it easy to tell which one you're in. This requires adding, e.g., autocmd InsertEnter * colorscheme <scheme-name> and autocomand InsertLeave * colorscheme <scheme-name> to your .vimrc. –  frabjous Sep 12 '10 at 13:15
add comment

I like vim because it makes coding feel like a video game. It's worth the learning curve. Why don't more applications behave like vim?

Try the vimperator plugin for firefox.

share|improve this answer
2  
+1 for vimperator, or vimium for chrome :) –  invert Aug 5 '10 at 11:38
    
You can also try the pentadactyl plugin, which was forked off from vimperator. –  apoorv020 Mar 1 '11 at 9:05
add comment

Gedit is simple and lightweight, yes, but does it have any actual advantages over Geany? You have to install a bunch of plugins just to catch up with ordinary built-in features of Geany, like code folding etc.

Whereas Geany plugins will give you extras like version control integration, optional and non-intrusive project management, jumping between function definitions and declarations, etc. And the configurable keybindings available in Geany allow you to set it up pretty much exactly how you like - though the defaults are pretty good too. Gedit can bundle a Python interpreter, but Geany bundles an entire virtual terminal.

Geany doesn't come with Ubuntu, but it's available from the repositories, it's tiny (10MB) + fast, and it provides enough features to compete with full-powered IDEs; less bells and whistles, but better support for actual text editing.

share|improve this answer
add comment

I don't know anything about Nano and Emacs, but you can configure and extend Vim almost endlessly and it is available on most platforms. On the downside I can't imagine a texteditor with a steeper learning curve.

Oh, and don't forget Ubuntu's default text editor, Gedit. It has a lot of features built in and can be extended via plugins (try sudo apt-get install gedit-plugins)

share|improve this answer
add comment

I use geddit with a combo of preferences and plugins. On a new machine I check all the boxes on the first two tabs of preferences, set the tabs to use 4 spaces.

I found the snippets plugin to be a rocker. It does not gives you the whole power of vi or emacs but it's almost there, and uses the same keybindings than any other app in gnome, it's more "understandable" :) at least IMO.

share|improve this answer
add comment

Note. Geany is an excellent editor if you have to edit XML-(configuration)-files!

share|improve this answer
add comment

My preferred one is gEdit. If you want to beef up to the level of TextMate you can do it this way:

sudo apt-get install gedit gedit-plugins
cd ~/Downloads
git clone http://github.com/gmate/gmate.git
cd gmate
sh ./install.sh

Oh and check the plugins to enable the cool features you need.

share|improve this answer
add comment

I use nano with a whole load of customization for the languages I write. I get a simple UI with as many features as I want.

share|improve this answer
1  
Please consider describing how and where you find these customizations. Include instructions on how to install. Also helpful would be general instructions on how to use nano. Consider the OP is not familiar with this software and that other readers might not be either. –  Anthony Nov 1 '12 at 23:32
add comment

I prefer gedit over all of those.

Admittedly I have spent next to no time trying vim but the other two I would not bother with.

Gedit is light but still has all the handy features you want like syntax highlighting tabbed pages and word/bracket completion.

Here are some screenshots from their site:

geditScreenshot

I find emacs really horrible to use.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.