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

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

  • Upload
    others

  • View
    10

  • Download
    0

Embed Size (px)

Citation preview

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