VIM Advanced 2001. 5. 7.. Why VIM? Easy to study Much easy to use Very easy to find from host You can defined it for yourself You can save.

Slides:



Advertisements
Similar presentations
June 1, 1999Vi Editor1 Introduction to UNIX C. Vi Editor.
Advertisements

Using Microsoft Office Excel 2007
A Guide to Unix Using Linux Fourth Edition
PacNOG 6: Nadi, Fiji Using Commands in Linux Hervey Allen Network Startup Resource Center.
Editing with vi Or more fun than you thought you’d have without a mouse Prof. Chris GauthierDickey.
A Practical Guide to Fedora and Red Hat Enterprise Linux Chapter 5: The vim Editor By Fred R. McClurg Linux Operating System © Copyright 2014, All Rights.
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.
Chapter 5 Editing Text Files
Word 2007 Understanding Word Environment CSCI150 Introduction to High Technology.
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 9: The vi/vim Editor Chin-Chih Chang
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.
1 Unix Editors (ee, ed, ex, vi, vim) and Compilers (g77, gcc) Speaker: Li-Wen Chen Date:
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
1 Unix Text Editors Creating files on the Unix system.
Chapter 3 Mastering Editors
Basic Text Processing, Redirection and Pipes. 222 Lecture Overview  Basic text processing commands head, tail, wc  Redirection and pipes  Getting to.
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.
리눅스 : Lecture 5 UNIX 유틸리티 : text editor, compilation (make), …
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.
Carnegie Mellon Linux Boot Camp Jenna MacCarley, Peter Pearson, Shashank Goyal 9/19/2015.
Introduction to Vim Robbie CSCI2100 Data Structures Tutorial 3.
1 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
1 © 2014 John Urrutia. All rights reserved. Chapter 7 The “ Emacs “ Editor.
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.
Using Commands Unix / Linux Preparation Course May 6, 2012 Serrekunda, The Gambia.
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.
Tony Kombol.  Why text edit?  Many programs and features require configuration ▪ Configuration is kept in files ▪ Usually in the /etc directory  Changes.
Text Editing February 2 nd, 2004 Class Meeting 3.
Chapter Three Text Editing1 System Programming Text Editing.
Unix Environment Input Output 2  List Content (ls) ◦ ls (list current directory) ◦ ls –all (include hidden files/folders)  Make directory (mkdir) ◦
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.
1 © 2012 John Urrutia. All rights reserved. Chapter 6 The vi Editor.
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.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
My Presentations Create new presentations and find the ones you’ve worked on before. Your progress is saved automatically as you work. Undo Anything.
Using the “CLI” Unix / Linux Preparation Course June 9, 2013 Lusaka, Zambia.
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.
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
BIF703 FTP (File Transfer Protocol) Utility vi editor Utility.
Guide to Parallel Operating Systems with Microsoft Windows XP and Linux Chapter 6 Text Editors.

Purdue Linux Users Group Presents Linux 201: Session 1 Everything you ever wanted to do in VIM Thor Smith.
Vim basics Vi IMproved.
California State University Fresno
Using Vi(m) This presentation on using the Vi(m) editor will cover:
What Every Vi User Should Know about Vim
Vi Editor.
Vi Introduction Tony Kombol.
Linux 104 Training Module File Editing.
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
Technical University of Kosice
CTRL + A = Select text CTRL + B = Bold text CTRL + C = Copy text CTRL + D = Open font formatting window CTRL + E = Center text CTRL + F = Find a phrase.
Program Development with Vim
Text Editors Vim (Chapter 6) Emacs (Chapter 7)
Basic gvim commands.
Interactive Flashcards: How to Customize the Flashcards
Microsoft Word Control Keys
Emacs CSC 135.
Linux Operations and Administration
CSCI The UNIX System Editing files
Mu Editor – New User Cheat Sheet – CircuitPython Mode
In the last class… The vi basics command, input and ex mode
Mu Editor – New User Cheat Sheet – CircuitPython Mode
Presentation transcript:

VIM Advanced

Why VIM? Easy to study Much easy to use Very easy to find from host You can defined it for yourself You can save time Your hand will not be tired for long typing

Three Modes Input mode Command mode ex mode

Basic Motion –h, j, k, l, ^, $ –w, W, b, B –-, +, G, gg, % Delete - x, X, d, dd, D, J Insert - a, A, i, I, o, O, :r Undo and Redo - u, o

Chage Delete and Insert –r, R, c, cc, C, s, S, ~ Shift –, >> (shiftwidth) Filter –!, !!, =, == (equalprg) Regular Expressiong –:s/pattern/string/modifier

Yank and Paste Register, [ “ x] :reg, y, yy, Y, p, P Predefined registers –“. - last inserted text –“ % - current filename –“ : - recent excuted command-line

Repeat simple repeat -. complex repeat –q[0-9a-zA-Z] –q

Remain Visual – v, V, ctrl-v :nu, :sh, :!{cmd}, :!!, :h

Compile and Error check :mak[e] – execute `makeprg ’ :gr[ep] – execute `grepprg ’ Display error –:cc [nr] – [nr] or current error –:cn – next error –:cp, :cN – previous error –:cnf – first error –:cf [nr] – [nr] or first error –:cla [nr] – [nr] or last error –:cl – list all error

Windows :sp, :new, :clo, :on ctrl w + –j, k, t, b – move to other window –r, R – rotation –x – exchange –-, =, + (:res [-+]N) – resize :qa, :wa

Indenting and Syntax highlighting :set autoindent :set smartindent :set cindent :syntax on :set syntax=perl :set background=[dark|light]

Various option autowrite – automatically write fileencoding – korea fileformat – dos, unix, mac textwidth – for writing mail –:set tw=78 autocmd – see the example :help gzip-example

Tab size issue First –:set tabstop=4 Second –:set tabstop=8 –:set softtabstop=4 –:set shiftwidth=4

Links

References :help