Usefull vi commands

Some useful commands to work with vi

<td>
  insert
</td>
<td>
  replace
</td>
<td>
  copy nine characters from cursor position, e.g 192.168.1.0 192.168.1 will be copied
</td>
<td>
  paste what you have copied
</td>
<td>
  delete character
</td>
<td>
  write and quit (save and close)
</td>
<td>
  find search_string
</td>
<td>
  go to next occurrence of search_string
</td>
<td>
  go to previous occurrence of search_string
</td>
<td>
  delete line
</td>
<td>
  delete next 10 lines
</td>
<td>
  copy line
</td>
<td>
  copy next 10 lines
</td>
<td>
  replace current character at cursor
</td>
<td>
  replace current word at cursor
</td>
i
r
9yl
p
x
:wq
/search_string
n
N
dd
10dd
yy
10yy
r
R