text editors … and “vi” in particularmsdl.cs.mcgill.ca/.../presentation.vitutorial.pdf · vi...
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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/1.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/2.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/3.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/4.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/5.jpg)
![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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/6.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/7.jpg)
![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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/8.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/9.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/10.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/11.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/12.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/13.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022071213/6039378243036a43110986b6/html5/thumbnails/14.jpg)