2. OUTLINES
1
•Why use an editor?
•Types of editors
•Vi / Vim editor
•gEdit editor
•Pico editor
•Nano editor
•Emacs Editor
•Other types of editors
•Voting of favourite editor used frequently
3. 1 OUTLINES
2
WHY USE AN EDITOR?
•An editor is just like a word processor without lot of features.
•All Oses come with a basic text editor.
•Main use – writing something in plain text with no formatting so another program
can read it.
•Most popular text editor for Linux is called ‘Vi’. It is a program that comes from
UNIX.
•There is more recent version called ‘VIM’ which means ‘Vi IMproved’.
•Problem with Vi/Vim – lot of people don’t like it, because of you have to remember a
lot of key combinations to do stuff that other editors will do for you more easily.
4. 3
TYPES OF EDITORS
•Vi / Vim
•gEdit
•Nano
•gVim
•Emacs
……. etc.
5. 4
Vi / Vim Editor
•Written in : C and Vim Script
•Operating System : Cross-platform (Unix, Linux and Windows)
•Author : Bram Moolenar
•First Vim editor built in 1991.
•Vim is designed for use both from a command-line interface (CLI) and as a
standalone application in a graphical user interface (GUI).
•gVim is the graphical version of the famous Vim editor.
6. Vi / Vim Editor
5
•For create file in Vim,
just type vi file-name and hit enter key.
•A new file will be opened.
•Type the contents and then save that file.
•To save, press the Esc key and then press : w q ‘enter key’
•To quit with out saving Esc + : + q and then enter
7. Vi / Vim Editor
• C program in Linux
1.Vi hello.c
Type the contents and save (Esc :wq!)
2. Compile the file
Gcc hello.c
3. Run the executable
./a.out
4. Compile file with output option
gcc –o hello hello.c
5. Run the executable
./hello
6
8. gEdit Editor
7
•gEdit is the default editor for the Gnome desktop environment. This is a UTF-8
compatible editor.
•Written in : C, Python
•Operating System : Cross-Platform
•It has simple and clear GUI.
•gEdit has feature like syntax highlighting for various program code and text
markup formats.
•It has also some unique feature like multiple working tabs, multilanguage
spellchecking, supports printing, print preview and printing to PDF files.
9. Pico Editor
8
•This console based plain text editor operates with the simplicity of a GUI editor
making it a favourite with Linux beginners.
•Pico (Pine Composer) comes with the Pine email client.
•Pico’s interface is many way similar to Windows editors, like Notepad.
•Pine stands for Program for Internet News & Email.
•It is a tool for reading, sending, and managing electronic messages.
•Easy to learn than Vi, gEdit, etc.
•Pine was developed by UW Technology at the University of Washington.
10. Nano Editor
•This is a GNU clone of Pico editor.
•GNU Nano is a small and friendly text editor.
•Besides basic text editing, nano offers many extra features like
an interactive search and replace,
go to line and column number,
auto-indentation,
feature toggles,
internationalization support, and
filename tab completion.
•In contrast to Pico, Nano is licensed under the GNU General Public License (GPL).
•GNU Nano was first created in 1999 with name TIP (This isn’t Pico) by Chris
Allegretta.
9
11. Emacs Editor
•This console based plain text editor supports the theory that more is better.
•It tries to support every feature possible.
•First Release of Emacs was in the year 1976.
•Written in : C and Emacs lisp
•Operating System: Cross-platform
10
12. Other types of editors
11
•Mainly 3 types of editors.
1. console based editors
2. GUI based editors
3. Structure text editors
1. console based editors: it contains various editors like emacs, jed, nano, pico,
vim.
2. GUI based editors: gedit, gvim, Nedit, Tea, sublime.
3. Structure text editors: It refers to logically formatted and/or annotated text to
represent a data schema or programmatic function.
•Two common formats available today are HTML for web markup of text
documents and XML for data representation.
•HTML editors: kompozer, bluefish, quanta, aptana, coffecup
•XML editos: KXML editor, Oxygen XML, Eclipse, Conglomerate XML, Emacs
nXML mode.