Vim Editor in English

Post on 13-Jan-2015

841 views 4 download

Tags:

description

9º Fórum Internacional de Software Livre, versão em inglês enviada para o Bram Moolenaar.

Transcript of Vim Editor in English

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Motive.

Information Systems course;

Computers with Linux;

To code programs in C++ and Java;

IDEs are “heavy” to this kind of work;

Knowledge of Vim editor;

I’m addicted to command-lines;

I was tired of the same routine: writing / saving / compiling / testing / re-compiling;

Programming Tutoring

I’m willing to learn!

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

But before that, my saga with text editors.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

The notorious COPY CON.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

EDIT helps a lot.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

SideKick.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Windows Notepad. Just the basic.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Notepad has changed a lot...

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

KDE's KWrite.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

KDE's Kate.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Pico.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Just the best part of mcedit.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Emacs is VI's mortal enemy.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

VI.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

VIM. Much better now!

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

GVIM. For those who enjoy buttons.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Sit and wait because here comes the history.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

At the beginning – Quick EDitor.

In 1966, Butler Lampson and Peter Deutsch created the QED editor to Berkeley operating system (BSD).

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Ken Thompson comes on stage.

Ken Thompson used QED in Berkeley. In 1968, he rewrote QED in assembly to MIT’S CTSS, applying the concepts of Regular Expressions

([0-9] *.* ???).

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

ed – UNIX Text Editor.

In 1972, when Ken Thompson wrote UNIX on PDP-7, he also created an editor in C language called ed (based on QED).

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

VI editor (Visual Interface).

In 1976, Bill Joy, cofounder of SUN, created VI editor to BSD.

The VI editor is based on an older line editor called ex, along with ed (both variants of QED).

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Emacs – the major competitor.

At the same period, Richard Stallman, from the GNU project, created Emacs editor.

It seems there is a “holy war” between the users of Emacs and Vi.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

VIM – Vi IMproved.

In 1992, Bram Moolenaar created VIM, Vi IMitator, or, as it’s called now, Vi IMproved.

Vi IMproved is the default version to Linux systems.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Some features of Vim:

It supports regular expressions in search;

Command mapping; Abbreviations; Syntax highlighting (more than 400 languages);

It opens many files at a time; Source code automatic indenting; Highly configurable text editor; Portability.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Dive in .vimrc

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

A test held among programmers.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

C++ code created by a Junior programmer in some editor.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

C++ code created by another Junior programmer in VIM.

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

1st Junior Programmer.

Junior Yamoto

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

2nd Junior Programmer.

Junior Almeida

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Thanks!

Bram Moolenaar

Aurélio Marinho Jargas

Silvana Rossy

Fábio Cavalcante

Estela Corbellini

Luiz Sanchesluizgrsanches@gmail.com

FISL 9.019/04/2008

Tips e links.

vim<enter> :help<enter>

www.vim.org

www.moolenaar.net

aurelio.net/vim

tech.groups.yahoo.com/group/vi-br

luizsanches.wordpress.com