14.06.2014 Views

vim 101 hacks

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Buyer: xiujuan lu (luxiujuan@gmail.com)<br />

Transaction ID: 85W16630AD8515549<br />

Vim <strong>101</strong> Hacks<br />

www.thegeekstuff.com<br />

• When you do q a, it will display the message “recording” at the<br />

bottom of the screen.<br />

3. Go to Insert Mode and Type ALTER USER<br />

I “ALTER USER ”<br />

Place the cursor anywhere in the first line, and then press I (upper case i),<br />

which will take you to the first character of the line. Type ALTER <br />

USER <br />

4. Copy the Next Word (i.e the name)<br />

w yw<br />

• Press ESC, and then press w to go to the next word ( name ).<br />

• yw, copies the current word ( name ).<br />

5.Go to the end and type IDENTIFIED BY ‘<br />

A ” IDENTIFIED BY ‘”<br />

• Press ESC, and A to move the cursor to the end of the line, and then<br />

type space.<br />

• Type IDENTIFIED BY ‘<br />

71

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!