VIM - Vi IMproved Bryce Handerson

Slides:



Advertisements
Similar presentations
Seven habits of effective text editing
Advertisements

The continuing story of Vim Bram Moolenaar
In the last Session… ls -l command seven fields nine permissions of a file ls -ld file ownership file permissions (three-tiered file protection system)
CS 497C – Introduction to UNIX Lecture 8: The vi/vim Editor Chin-Chih Chang
Microsoft Word – Lesson 1
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.
Vi Editor TA for ITIS3100: Xu Fei
Linux+ Guide to Linux Certification, Second Edition
CS 202 Computer Science II Lab Fall 2009 September 3.
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.
Editing Java programs with the BlueJ IDE. Working environments to develop (= write) programs There are 2 ways to develop (write) computer programs: 1.Using.
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.
Source code indexer. What does it do?  Indexes source code for fast lookups of methods, variables, structs, macros, …  But LXR does this… Ctags can.
1 Unix Editors (ee, ed, ex, vi, vim) and Compilers (g77, gcc) Speaker: Li-Wen Chen Date:
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
More on Linux - vi Opening Discussion zWhat did we talk about last class? zYou will use the command line a lot in this course. So lets review.
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.
Introduction to Vim Robbie CSCI2100 Data Structures Tutorial 3.
Introduction to Unix – CS 21 Lecture 8. Lecture Overview More detail on emacs and vi Regular expression matching in emacs and vi.
UNIX Introduction CSCE 221H Texas A&M University.
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.
Basic vi Commands Michael Davis Phd Student, Atmospheric Science.
Tony Kombol.  Why text edit?  Many programs and features require configuration ▪ Configuration is kept in files ▪ Usually in the /etc directory  Changes.
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.
Getting Started with Linux Linux System Administration Editors.
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.
Byoung-Jo CHOI Fall 2007 SW Project II Advanced Linux Programming.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
Vi editor Pronounced: `vee eye‘’. Agenda Describe the background of vi Editor Use vi editor to: create text files edit text files Our Goal is to create.
MIT-Word Lesson Two. The Open Command The Open command is accessed from the File Tab in the Backstage Clicking File/Open brings up the Open dialog box.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Shell Script Reference: Linux Shell Scripting Tutorial v1.05r3 A Beginner's handbook
Introduction to UNIX and Linux.  Written by Dennis Ritchie and Ken Thomsom at Bell Labs in 1969  Initially written in assembly language and a high-level.
Getting Started with Linux Linux System Administration Editors.
ITX2000 Remote hosts and web servers Prof. Xiaohong (Sharon) Gao Room: T125 Ext: Week 14 – UNIX vi text editor.
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)
First Day in Lab Making a C++ program
SUSE Linux Enterprise Desktop Administration
Turning method call into an object
Vim basics Vi IMproved.
Using Vi(m) This presentation on using the Vi(m) editor will cover:
The Desktop Screen image displayed when a PC starts up A metaphor
What Every Vi User Should Know about Vim
Guide To UNIX Using Linux Third Edition
Vi Introduction Tony Kombol.
Lecture 3 More on editors: emacs and vi COP 3344 Introduction to UNIX.
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
Linux.
Linux System Administration Editors
Technical University of Kosice
Program Development with Vim
Text Editors Vim (Chapter 6) Emacs (Chapter 7)
The Linux Command Line Chapter 12
You do want to create and edit programs?
vim Basics Understanding And Using the vim Text Editor
C151 Multi-User Operating Systems
Run Java file with Window cmd
Chapter 2 Basic vi Editor.
Linux Operations and Administration
Lab 7 Shell Script Reference:
CSCI The UNIX System Editing files
Input and Output Python3 Beginner #3.
Introduction to Linux and Code Editing
The Linux Command Line Chapter 12
Presentation transcript:

VIM - Vi IMproved Bryce Handerson Hello, I’m Bryce Handerson, I am treasurer of the LUG and a senior CS major.

History VI - 1976 Vim - 1991 Charityware Bill Joy Bram Moolenaar Ugandan children So Vim all started from VI vi was released in 1976 as part of freeBSD to replace ed which was written for teletypes so that they could use display terminals Bram Moolenaar wrote it to be a more full featured text editor and allow pretty much any customizable thing you can think of to work He released it in 1991 as charityware with the charity being donations to Ugandan children

Modes Normal Insert Command Unline other text editors like Notepad++ emacs and sublime, Vi and VIM are mode based text editors there are essentially three different modes the user can be in to accomplish certain tasks. Normal mode is where you navigate around the file and can run basic keyboard bindings Insert mode is exactly like you would think it is, you insert text like you would in a non mode text editor Command mode is where you run non keyboard bound commands such as help or quit and any other command.

Why three modes? Because there are so many cool things about vim there isn’t enough room in one mode to store it all the whole point of vim is to keep your fingers on the keyboard and not have to move very much at all If you have ever spent a whole day writing code you will know that after awhile your wrists and forearms get sore, this can lead to other problems such as carpal tunnel and rsi

Vimrc file With your vimrc file you can turn boring white text into a clean easy to read colorful informative text editor

What can I do with my vimrc Vimscript Plugins Bundling Bindings Shortcuts Auto formatting Colors!

Package manager vim-addon-manager Pathogen Vundle (my favorite) Vim - addon - manager is a command line plugin manager ran outside of vim Pathogen is an older manager which finds the plugins in a certain directory and adds them Vundle is a plugin in itself where you just put which plugins you want in your vimrc

Vundle Bundles

Basic normal mode commands <esc> i and I a and A u and U <ctrl> r escape is how to get out of a mode you are in, you cannot leave normal mode this is the default mode lowercase i is insert where your cursor is exactly Uppercase I is insert at the beginning of the text on the line lowercase a is insert after the character you are hovering over with your cursor uppercase A is insert at end of line this can be useful to find bad whitespace if you don’t highlight it u is undo last action U is undo last action on that line only ctrl r is redo

Tour through my .vimrc

lug.wsu.edu lug-announce@lists.wsu.edu These Slides: http://goo.gl/VzwoIC Making The Switch, Linux http://goo.gl/EazMA http://github.com/bhanderson/dotfiles