14 Pages

usr_10

Course: VIM 61, Fall 2009
School: RPI
Rating:
 
 
 
 
 

Word Count: 4835

Document Preview

Vim *usr_10.txt*For version 6.1. Last change: 2001 Sep 18 VIM USER MANUAL - by Bram Moolenaar Making big changes In chapter 4 several ways to make small changes were explained. This chapter goes into making changes that are repeated or can affect a large amount of text. The Visual mode allows doing various things with blocks of text. Use an external program to do really complicated things....

Register Now

Unformatted Document Excerpt

Coursehero >> New York >> RPI >> VIM 61

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Vim *usr_10.txt*For version 6.1. Last change: 2001 Sep 18 VIM USER MANUAL - by Bram Moolenaar Making big changes In chapter 4 several ways to make small changes were explained. This chapter goes into making changes that are repeated or can affect a large amount of text. The Visual mode allows doing various things with blocks of text. Use an external program to do really complicated things. |10.1|Record and playback commands |10.2|Substitution |10.3|Command ranges |10.4|The global command |10.5|Visual block mode |10.6|Reading and writing part of a file |10.7|Formatting text |10.8|Changing case |10.9|Using an external program Next chapter: |usr_11.txt| Recovering from a crash Previous chapter: |usr_09.txt| Using the GUI Table of contents: |usr_toc.txt| ============================================================================== *10.1*Record and playback commands The "." command repeats the preceding change. But what if you want to do something more complex than a single change? That's where command recording comes in. There are three steps: 1. The "q{register}" command starts recording keystrokes into the register named {register}. The register name must be between a and z. 2. Type your commands. 3. To finish recording, press q (without any extra character). You can now execute the macro by typing the command "@{register}". Take a look at how to use these commands in practice. You have a list of filenames that look like this: stdio.h ~ fcntl.h ~ unistd.h ~ stdlib.h ~ And what you want is the following: #include "stdio.h" ~ #include "fcntl.h" ~ #include "unistd.h" ~ #include "stdlib.h" ~ You start by moving to the first character of the first line. Next you execute the following commands: qaStart recording a macro in register a. ^Move to the beginning of the line. i#include "<Esc>Insert the string #include " at the beginning of the line. $Move to the end of the line. a"<Esc>Append the character double quotation mark (") to the end of the line. jGo to the next line. qStop recording the macro. Now that you have done the work once, you can repeat the change by typing the command "@a" three times. The "@a" command can be preceded by a count, which will cause the macro to be executed that number of times. In this case you would type: > 3@a MOVE AND EXECUTE You might have the lines you want to change in various places. Just move the cursor to each location and use the "@a" command. If you have done that once, you can do it again with "@@". That's a bit easier to type. If you now execute register b with "@b", the next "@@" will use register b. If you compare the playback method with using ".", there are several differences. First of all, "." can only repeat one change. As seen in the example above, "@a" can do several changes, and move around as well. Secondly, ".&...
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

RPI - WIN - 64
Sheet1 Err:510 IBM Tivoli Storage Manager Windows Backup-Archive Client READMEVersion 5 Release 2, Level 4Licensed Materials - Property of IBM (C) Copyright IBM Corporation 1990, 2005. All rights reserved.Welcome to the IBM Tivoli Storage Manag
RPI - WIN - 64
Sheet1 Err:510 IBM Tivoli Storage Manager Windows Backup-Archive Client READMEVersion 5 Release 2, Level 3Licensed Materials - Property of IBM (C) Copyright IBM Corporation 1990, 2004. All rights reserved.Welcome to the IBM Tivoli Storage Manag
Stanford - JHJ - 1
Revision 14 October 2007ANSI 179, p.1Anthropological Sciences 179, Human Biology 179 Environmental Change and Emerging Infectious Disease Fall 2007 Instructors: William H. Durham Department of Anthropology Office phone: email: Office Hours: Build
RPI - CPCN - 04
Time Synchronization and Distributed Modulation in Large-Scale Sensor NetworksSergio D. ServettoSchool of Electrical and Computer Engineering Cornell University http:/cn.ece.cornell.edu/RPI Workshop-4/29/04.AcknowledgementsRon Dabora (PhD Ca
RPI - CPCN - 04
Distributed In-Network Decision Making in Sensor NetworksMurat Alanyali Boston UniversityJoint work with Saligrama Venkatesh, Onur Savas, Shuchin AeronApplications Habitat monitoring Inventory control Military applications .Moisture sensors
RPI - PDF - 03
62Tuition and FeesBills covering the fees of any term are mailed before the start of the term and are payable no later than the date specified, approximately one month before classes start. A student's registration is not complete until he or she
RPI - PDF - 04
620INDEXIndexAcademic and Research Computing 16 Academic Calendar 4 Academic Credit 82 Academic Information and Regulations 69 Academic Load 73 Academic Prizes 92 Academic Standing 89 Accelerated Prelaw Program 240 Accelerated Programs 34 Accele
RPI - PDF - 04
L A L LY S C H O O L O F M A N A G E M E N T A N D T E C H N O L O G YTable of ContentsDegrees Offered The Lally Undergraduate Program The Lally Graduate Programs 314 314 317LALLY SCHOOL OF MANAGEMENT AND TECHNOLOGY313Lally School of Managem
RPI - PDF - 06
7Rensselaer in BriefOverviewRensselaer Polytechnic Institute is the nations oldest technological research university. A nonsectarian, coeducational institution, the university offers degrees from five schools: Engineering, Science, Architecture,
RPI - PDF - 06
INDEX625IndexAcademic and Research Computing 16 Academic Calendar 4 Academic Credit 84 Academic Information and Regulations 71 Academic Load 74 Academic Prizes 95 Academic Standing 91 Accelerated Prelaw Program 246 Accelerated Programs 35 Accele
RPI - PDF - 06
28Student LifeRensselaer helps educate &quot;leaders of tomorrow&quot; by providing a robust set of student life programs and services designed to: I facilitate academic success I offer education and practice in leadership and followership I encourage fitne
RPI - PDF - 06
66Tuition and FeesBills covering the fees of any term are mailed before the start of the term and are payable no later than the date specified, approximately one month before classes start. A student's registration is not complete until he or she
RPI - PDF - 05
AdmissionsUndergraduate AdmissionsActing Dean of Enrollment Management: Karen S. Long Contacting Rensselaer Admissions Information and application forms are available by contacting: Office of Undergraduate Admissions Rensselaer Polytechnic Institut
RPI - PDF - 06
RESERVE OFFICERS TRAINING CORPSTable of ContentsAir and Space Studies Military Science Naval Science 419 420 422RESERVE OFFICERS TRAINING CORPS419Reserve Officers Training CorpsThe Reserve Officers Training Corps (ROTC) programs are electiv
RPI - PDF - 03
25Student LifeRensselaer helps educate &quot;leaders of tomorrow&quot; by providing a robust set of student life programs and services designed to: facilitate academic success offer education and practice in leadership and followership encourage fitness
RPI - PDF - 05
7Rensselaer in BriefOverviewRensselaer Polytechnic Institute is the nation's oldest technological research university. A nonsectarian, coeducational institution, the university offers degrees from five schools: Engineering, Science, Architecture,
RPI - PDF - 05
RESERVE OFFICERS TRAINING CORPSTable of ContentsAir and Space Studies Military Science Naval Science 423 424 425RESERVE OFFICERS TRAINING CORPS423Reserve Officers Training CorpsThe Reserve Officers Training Corps (ROTC) programs are electiv
RPI - PDF - 04
26Student LifeRensselaer helps educate leaders of tomorrow by providing a robust set of student life programs and services designed to: I facilitate academic success I offer education and practice in leadership and followership I encourage fitness
RPI - PDF - 06
AdmissionsUndergraduate AdmissionsDirector, Undergraduate Enrollment Programs: Karen S. Long Contacting Rensselaer Admissions Information and application forms are available by contacting: Office of Undergraduate Admissions Rensselaer Polytechnic I
RPI - PDF - 04
7Rensselaer in BriefOverviewRensselaer Polytechnic Institute is the nations oldest technological research university. A nonsectarian, coeducational institution, the university offers degrees from five schools: Engineering, Science, Architecture,
RPI - PHYS - 1
Physics I Review 2Review Notes Exam 2Rev. 26-Oct-04 GBR2-1Work Work is a measure of the energy that a force puts into (+) or takes away from () an object as it moves. We will see that work is a useful way to solve problems where the force o
RPI - PHYS - 1
Physics I Class 17Newtons Theory of GravitationRev. 03-Nov-04 GB17-1Forces Known to PhysicsThere are four fundamental forces known to physics: Gravitational Force (today) Electromagnetic Force (later in Physics 1 and 2) Weak Nuclear Force St
RPI - LECTURES - 2001
ElectronsinSolidsEnergy Bands and Resistance in Conductors and SemiconductorsWhatHaveWeLearnedAbout OpticalStorage? Laser light is focused through a (circular) lens onto the surface of a CD Light striking a (smooth) land undergoes total r
RPI - LECTURES - 2002
Greatest challenges of the 21st Century:To create computing capability that can operate with THz speed2with Terabits/cm information storage, and to apply this technology in biotechnology, business, and educationSpeed drives technology Technolo
RPI - LECTURES - 2002
Electrons in SolidsEnergy Bands and Resistance in Conductors and SemiconductorsWhat Have We Learned About Electrical Storage The electric force FE on a charge q0 can be considered due to an electric field which is produced by other charges in th
RPI - LECTURES - 2001
Putting Light to Work for YouFeatures of Signal TransferWhat have we learned? Any traveling sinusoidal wave may be described by y = ym sin(kx t + ) is the phase constant that determines where the wave starts. = 2f = 2/T k = 2/ v = /T = f =
RPI - LECTURES - 2001
QuantumMechanics102Tunneling and its ApplicationsInterferenceofWavesandthe DoubleSlitExperimentWaves spreading out from two points, such as waves passing through two slits, will interfereWave crest Wave trough Spot of constructive interfer
RPI - LECTURES - 2002
Putting Light to Work for YouFeatures of Signal TransferWhat have we learned? Any traveling sinusoidal wave may be described by y = ym sin(kx t + ) is the phase constant that determines where the wave starts. = 2f = 2/T k = 2/ v = /T = f =
RPI - LECTURES - 2002
Bending and Bouncing LightStanding Waves, Reflection, and RefractionWhat have we learned? Waves transmit information between two points without individual particles moving between those points Transverse Waves oscillate perpendicularly to the di
RPI - LECTURES - 2001
OpticalDevicesAn Overview of Terms from Optical ComputingReviewofprocessors All computer operations can be constructed from series of on/off gates MOSFET allows large current when small voltage applied to gate; no current when no voltage
RPI - PHYS - 1
Physics I Class 23Magnetic Force on Moving ChargesRev. 07-Apr-04 GB23-1Hendrick Antoon LorentzHendrick A. Lorentz was a Dutch physicist who refined certain aspects of electromagnetic theory. He, along with Irish mathematical physicist George