Advanced Vim (Vi Improved). Announcement Managements requests that all the Emacs chauvinist in the audience refrain from arguing with the Vim chauvinist.

Slides:



Advertisements
Similar presentations
The continuing story of Vim Bram Moolenaar
Advertisements

KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
EDIT MODE The HAAS Control Series PRESS THREE TIMES TO GET TO THIS PAGE (Continued on next slide) Note: SLIDE LEGEND ACTIONS INSTRUCTIONS KEYS INFORMATION.
Advanced Microsoft Word Hosted by Jared Hoffman Topics Keyboard Shortcuts Customizing Toolbars and Menus Auto Format & Auto Correct Tabs Inserting Pictures.
Editing with vi Or more fun than you thought you’d have without a mouse Prof. Chris GauthierDickey.
Program Development Tools IDE vs point tools Two tool flavors exist for developing embedded software: -IDEs: (Integrated Development Environments) i.e.,
VIM: The basics Tang Wai-Chung, Matthew (MaFai) 29/12/2006.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Linux+ Guide to Linux Certification, Second Edition
CS 497C – Introduction to UNIX Lecture 18: - The GNU emacs Editor Chin-Chih Chang
XP New Perspectives on Microsoft Office Word 2003 Tutorial 1 1 Microsoft Office Word 2003 Tutorial 1 – Creating a Document.
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.
XP 1 Microsoft Office Word 2003 Tutorial 1 – Creating a Document.
Microsoft Word 2007 Introduction to Word Processors.
Word Processing basics
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.
Lesson 15 Getting Started with PowerPoint Essentials
Microsoft Office Word 2003 Tutorial 1 Creating a Document.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1 © Copyright IBM Corporation 2008 Unit 7 Editing.
Vi/vim/gvim Training Judy Ghirardelli NWS/OST/MDL July 29, 2004 Last Update: September 15, 2004.
Introduction to Vim Robbie CSCI2100 Data Structures Tutorial 3.
Lesson 11: Looking at Files and Folders what a file or folder is on the computer how to recognize a file or folder on the desktop how to recognize the.
VIM  This is the text editor you will use on the workstation.  You can also edit the text files under windows environment and upload it to the workstation.
Introduction to Unix – CS 21 Lecture 8. Lecture Overview More detail on emacs and vi Regular expression matching in emacs and vi.
1 Lesson 13 Editing and Formatting documents Computer Literacy BASICS: A Comprehensive Guide to IC 3, 4 th Edition Morrison / Wells.
Learning Unity. Getting Unity
Text editors Why should I use an editor ? It is very important to able to use at least one text mode editor a text mode editor is so useful on remote machines.
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.
Tony Kombol.  Why text edit?  Many programs and features require configuration ▪ Configuration is kept in files ▪ Usually in the /etc directory  Changes.
Introduction to Unix – CS 21 Lecture 7. Lecture Overview Regular expressions revisited emacs versus vi Basic emacs and vi usage.
Chapter Three Text Editing1 System Programming Text Editing.
Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.
Chapter Three The UNIX Editors.
Byoung-Jo CHOI Fall 2007 SW Project II Advanced Linux Programming.
Unit A Getting Started with Adobe Photoshop. What is Adobe Photoshop? Adobe Photoshop delivers powerful, industry-standard image-editing tools for designers.
Agenda Using vi Editor Starting vi Session Command / Input Modes Entering Text Editing Text Saving Edited File Aborting Editing Session.
Agenda Using vi Editor Starting vi Session Command / Input Modes
1. Chapter 1 Creating, Printing, and Editing Documents.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Editing and Correcting Documents MS Word Lesson Three Mrs. Brown.
Microsoft Windows 7 - Illustrated Unit G: Exploring the Internet with Microsoft Internet Explorer.
Purdue Linux Users Group Presents Linux 201: Session 1 Everything you ever wanted to do in VIM Thor Smith.
CS:414 introduction to Unix and Linux
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
Dive Into® Visual Basic 2010 Express
SUSE Linux Enterprise Desktop Administration
Vim basics Vi IMproved.
Using Vi(m) This presentation on using the Vi(m) editor will cover:
What Every Vi User Should Know about Vim
Guide To UNIX Using Linux Third Edition
Vi Introduction Tony Kombol.
Linux 104 Training Module File Editing.
Program Development with Vim
Text Editors Vim (Chapter 6) Emacs (Chapter 7)
You do want to create and edit programs?
Emacs CSC 135.
JEdit.
C151 Multi-User Operating Systems
Lesson 20 Getting Started with PowerPoint Essentials
European Computer Driving Licence
MACROS MUST BE ENABLED FOR THIS FILE TO WORK
Lesson 13 Editing and Formatting documents
Scripts In Matlab.
Linux Operations and Administration
1 Word Processing Part I.
CSCI The UNIX System Editing files
Microsoft Word 2007 Introduction to Word Processors.
Presentation transcript:

Advanced Vim (Vi Improved)

Announcement Managements requests that all the Emacs chauvinist in the audience refrain from arguing with the Vim chauvinist on stage. Such arguments are generally considered intellectual combat between two unarmed opponents.

Topics ● What Vi users should know about Vim ● Using Vim to go perform Electronic Archeology (digging through legacy code) ● How to create a syntax coloring scheme or modify an existing one ● Scripting with Vim's internal language and using Perl for Vim scripting

What every Vi User Should Know About Vim

Turning on the new features Warning: By default Vim tries to act like Vi. This means that many of Vim's best features are turned off unless you tell Vim to operate in Vim mode. To tell Vim to be Vim create the file: $HOME/.vimrc

Starting ● vim – Start in current window ● gvim – Start in it's own GUI

First Commands ● Undo works multiple times (Use CTRL-R to redo a change) ● :help Help is actually very informative and useful!

Multiple Windows ● Open a new window :split file ● Go Up / Down a window CTRL-Wj CTRL-Wk ● Open a new window (vertical) :vsplit file ● Go Left / Right a window CTRL-Wh CTRL-Wl

Tabbed Editing ● To open a new tab: :tabnew file

Searching Features ● Highlight Searching :set hlsearch ● (Good for regular expression creation too!) ● Incremental Searching :set incsearch

Search History ● Use / then / to browse history ● (Also works for command (:) mode)

Spelling ● Turn on spelling :set spell ● List possible corrections for the word under the cursor z= ● Use the mouse to suggest spelling :set mousemodel=popup

Visual Mode ● Normal way to delete three words d3w ● Visual mode way v – Start visual mode www – Move over three words (3w works too) (Text is highlighted) d – Delete the highlighted text