14.06.2014 Views

vim 101 hacks

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Transaction ID: 85W16630AD8515549<br />

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

www.thegeekstuff.com<br />

:reg<br />

--- Registers ---<br />

"" " --------^J<br />

"0 " --------^J<br />

"1 eth0^J<br />

"2 this a testing text^J<br />

"3 100 John Smith^J<br />

"4 DBA^J<br />

"5 Section Data^J" Overview^J<br />

"6 command not found^J<br />

"7 /dev/sdc0 none swap sw 0 0<br />

"8 ^J<br />

"9 ^J<br />

If you want to paste the content from register 7 highlighted above to your<br />

current document execute the following:<br />

“7p<br />

Hack 27. Delete Single Char, or Word, or Line<br />

Delete is similar to copy. However you have to use d instead of y.<br />

Key<br />

x<br />

Description<br />

Delete the current character<br />

dw<br />

Delete the current word<br />

dj<br />

Delete the current line and next line<br />

56

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

Saved successfully!

Ooh no, something went wrong!