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 />
To list all the occurrences of the word under the cursor, use [I (upper-case i)<br />
[I<br />
Hack 89. Search for a Character within a Line<br />
Use the following keys to navigate within a line.<br />
Navigation<br />
Key<br />
fX<br />
Description<br />
Go to character X within a line in forward direction<br />
FX<br />
Go to character X within a line in reverse direction<br />
tX<br />
Go to one character before character X within a line in<br />
forward direction<br />
TX<br />
Go to one character before character X within a line in<br />
forward direction<br />
; Repeat latest f, F, t or T in forward direction<br />
, Repeat latest f, F, t or T in backward direction<br />
Hack 90. 12 Powerful Find and Replace Examples<br />
In this hack, let us review how to perform both basic and advanced text and<br />
pattern substitution features in the Vim Editor. These features are explained<br />
using 12 very practical and powerful text substitution examples.<br />
Syntax of the text substitution command inside the Vim editor:<br />
129