CS 497C – Introduction to UNIX Lecture 19: - The GNU emacs Editor Chin-Chih Chang

Slides:



Advertisements
Similar presentations
CS 497C – Introduction to UNIX Lecture 5: Understanding the UNIX Command Chin-Chih Chang
Advertisements

CS 497C – Introduction to UNIX Lecture 8: The vi/vim Editor Chin-Chih Chang
A Guide to Unix Using Linux Fourth Edition
Introduction to the gedit editor. gedit: the Gnome editor Gnome: Gnome is a freely available (i.e., no cost) desktop environment for the UNIX system The.
Editing with vi Or more fun than you thought you’d have without a mouse Prof. Chris GauthierDickey.
CS 497C – Introduction to UNIX Lecture 11: - The File System Chin-Chih Chang
CS 497C – Introduction to UNIX Lecture 29: - Filters Using Regular Expressions – grep and sed Chin-Chih Chang
CS 497C – Introduction to UNIX Lecture 22: - The Shell Chin-Chih Chang
Chin-Chih Chang CS 497C – Introduction to UNIX Lecture 28: - Filters Using Regular Expressions – grep and sed Chin-Chih Chang
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
CS 497C – Introduction to UNIX Lecture 31: - Filters Using Regular Expressions – grep and sed Chin-Chih Chang
CS 497C – Introduction to UNIX Lecture 17: - The GNU emacs Editor Chin-Chih Chang
Linux+ Guide to Linux Certification, Second Edition
Chapter 5 Editing Text Files
CS 497C – Introduction to UNIX Lecture 18: - The GNU emacs Editor Chin-Chih Chang
CS 497C – Introduction to UNIX Lecture 36: - Customizing the Environment Chin-Chih Chang
CS 497C – Introduction to UNIX Lecture 10: The vi/vim Editor Chin-Chih Chang
CS 497C – Introduction to UNIX Lecture 25: - Simple Filters Chin-Chih Chang
CS 497C – Introduction to UNIX Lecture 3: Inside UNIX Chin-Chih Chang
1 Using Editors Editors let you create and edit ASCII files UNIX normally includes two editors: vi and Emacs Vi and Emacs are screen editors: they display.
CS 497C – Introduction to UNIX Lecture 23: - Simple Filters Chin-Chih Chang
CS 497C – Introduction to UNIX Lecture 30: - Filters Using Regular Expressions – grep and sed Chin-Chih Chang
CS 497C – Introduction to UNIX Lecture 4: Understanding the UNIX Command Chin-Chih Chang
Lecture 02CS311 – Operating Systems 1 1 CS311 – Lecture 02 Outline UNIX/Linux features – Redirection – pipes – Terminating a command – Running program.
CS 497C – Introduction to UNIX Lecture 1: Getting Started Chin-Chih Chang
CS465 - UNIX The vi Editor. Creating Files Most human-readable files on Unix are created with a text editor Unix has many, many different editors ed a.
Copyrights© 2008 BVU Amplify DITM Basics of OS,UNIX/LINUX and Shell programming Page:1 Lesson 3: Vi- editor By Simi By Simi.
CSCI 330 T HE UNIX S YSTEM Editing files. E DITOR C ONCEPTS Editing a file is to modify the content of a file Text editor: Enter and modify text in a.
Using Linux Text Editors. Use Non-Graphical Linux Text Editors Graphical Text Editor.
謝耀偉編著 國立高雄大學應用數學系 Living in Emacs DeveloperWorks, IBM.
Chapter 3 Mastering Editors
CS 497C – Introduction to UNIX Lecture 7: General-Purpose Utilities Chin-Chih Chang
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Software I: Utilities and Internals Lecture 2 – The vi Text Editor * Modified from Dr. Robert Siegfried original presentation.
Introduction to Vim Robbie CSCI2100 Data Structures Tutorial 3.
Additional UNIX Commands. 222 Lecture Overview  Multiple commands and job control  More useful UNIX utilities.
January 23, 2007Spring Unix Lecture 2 Special Characters for Searches & Substitutions Shell Scripts Hana Filip.
1 © 2014 John Urrutia. All rights reserved. Chapter 7 The “ Emacs “ Editor.
Introduction to Unix – CS 21 Lecture 8. Lecture Overview More detail on emacs and vi Regular expression matching in emacs and vi.
4 Editing files and Emacs Editing files The Emacs editor.
Unix Editors. u Editors in Unix come in two general flavours: –modal editors have "modes" v generally input mode and command mode –input mode allows entry.
Unix Session IV.
Introduction to Unix – CS 21 Lecture 7. Lecture Overview Regular expressions revisited emacs versus vi Basic emacs and vi usage.
EMACS Jim Vallino Proud emacs user since The truth about editors Editors are like religions. Everyone has one that they like.
Text Editing February 2 nd, 2004 Class Meeting 3.
1 of 47 Chapter 4: The vi Editor – First Look Copyright ©2008 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved.
Chapter Three Text Editing1 System Programming Text Editing.
VI EDITOR University of Mississippi. Vi Editor What is Vi ? ▫Vi is a screen based editor. ▫The screen of your terminal will act as a window into the file.
Lesson 4-Mastering the Visual Editor. Overview Introducing the visual editor. Working in an existing file with vi. Understanding the visual editor. Navigating.
Chapter Three The UNIX Editors.
Text editing and more basic commands CS 2204 Class meeting 3 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Agenda Using vi Editor Starting vi Session Command / Input Modes Entering Text Editing Text Saving Edited File Aborting Editing Session.
1 Lecture 3 More on editors: emacs and vi COP 3344 Introduction to UNIX.
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
Emacs, Compilation, and Makefile C151 Multi-User Operating Systems.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
FILTERS USING REGULAR EXPRESSIONS – grep and sed.
ITX2000 Remote hosts and web servers Prof. Xiaohong (Sharon) Gao Room: T125 Ext: Week 14 – UNIX vi text editor.
CS:414 introduction to Unix and Linux
CSE 303 Concepts and Tools for Software Development Richard C. Davis UW CSE – 10/9/2006 Lecture 6 – String Processing.
Vim basics Vi IMproved.
Guide To UNIX Using Linux Third Edition
PROGRAMMING THE BASH SHELL PART IV by İlker Korkmaz and Kaya Oğuz
Vi Editor.
Lecture 3 More on editors: emacs and vi COP 3344 Introduction to UNIX.
Chapter 2 Basic vi Editor.
Lesson 3: Find and Replace Tools
The Emacs Editor Read: Forouzan, Appendix C
CSCI The UNIX System Editing files
Day 5 Emacs Editor David A. Gaitros Department of Computer Science
Presentation transcript:

CS 497C – Introduction to UNIX Lecture 19: - The GNU emacs Editor Chin-Chih Chang

Searching with Regular Expressions If you can search for both michael and michel with this expression: mich*el. You can also use a character class to specify a single character in that class. The pattern that matches both christie or christy should be christ[iy]e*. You can use ^ and # to match an expression at the beginning and end of line, respectively.

Searching with Regular Expressions To search forward with regular expressions in an incremental manner, use [Ctrl-Alt-s] key sequence, type the regular expressions and then [Enter]. To repeat a regular expression search, use [Ctrl-Alt-s][Enter][Enter].

Search and Replace To globally replace the word Internet with World Wide Web without interaction, first press [Alt-x] and then enter the replace- string command. This command completion feature can be done by using [Alt-x]repl[Tab]s[Tab]. First enter the string to be replaced and then enter the target string.

Search and Replace You can replace strings in an interactive manner with the query-replace facility. The query-replace command is done by [Alt-%]. Then enter the string to be replaced and the target string.

Using Multiple Files, Windows and Buffers To view the same file in two separate windows, use [Ctrl-x]2. To move to the other window, the command is [Ctrl-x]o. You can increase the window’s vertical size by [Ctrl-x]^. You can open different file by [Ctrl-x][Ctrl-f].

Using Multiple Files, Windows and Buffers To replace current buffer, use [Ctrl-x][Ctrl-v]. To close other windows, use [Ctrl-x]1. To close the current window, use [Ctrl-x]0. To call up another buffer, use [Ctrl-x]b. You can insert a file into the current file by using [Ctrl-x]i filename.

Escape to Shell To escape to shell, use [Ctrl-x][Ctrl-z] or [Alt-x]shell. Enter fg to return to emacs. To execute a UNIX command, use [Alt-!]. The help facility is invoked with [Ctrl-h]. To access help by key, use [Ctrl-h]k and enter the key sequence. To close the help window, use [Ctrl-x]1.

Using the Help Facility [Ctrl-h] To know what a command does, use [Ctrl-h]f (function) and enter the command. To know the key binding, use [Ctrl-h]w (where-is) and enter the command. To run the tutorial, use [Ctrl-h]t (tutorial). To quit the tutorial, use [Ctrl-x]b to quit to the previous buffer. To read the emacs documentation, use [Ctrl-h]i (information).