Vim: Implement gd and gD

Fixes issue https://github.com/yi-editor/yi/issues/539.

For future reference: If the search word is the first word of the buffer, it jumps to the second occurrence in the buffer. Currently, Vim has the exact same implementation. Not sure if this is the intended behavior.
Unneded parens around `head`.