text editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.vitutorial.pdf · vi...

14
Text Editors … and “vi” in particular Hans Vangheluwe

Upload: others

Post on 08-Oct-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of

Text Editors … and “vi” in particular

Hans Vangheluwe

Page 2: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of

Text Editors ...

Window, Icon, Menu, Pointing device

Page 3: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of

WYSIWYG (or not quite ...)

Page 4: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of

1974 TAOCP

Page 5: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of
Page 6: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of

Explicitly state the thoughts behind the program:

● Explain the link between requirements (what) and design (how)

● Explain design decisions (algorithms and data structures)

● Explain code-level decisions (for example, for efficiency)

Page 7: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of
Page 8: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of

2013

Leslie Lamport

Page 9: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of

Non-WYSIWYG ...

but optimal “typesetter”

Page 10: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of

Who needs a mouse anyway ...“space cadet” keyboard

Page 11: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of

Who needs a mouse anyway ...the vi editor (and variants ... vim)

Page 12: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of

Who needs a mouse anyway ...the vi editor

use in minimal environments, ubiquitous

Page 13: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of

Who needs a mouse anyway ...the vi editor (based on ex line editor)

Two modes:

● Command● Insert

Keyboard only!

... fast ...

Page 14: Text Editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.viTutorial.pdf · vi help sheet file commands file) file edit fil edit file c search commands end of