Fix #1

This commit improves the implementation of n and N. Currently I see a
bunch of tests on search history fail. However, they work as expeced
when run manually. Seems to be a problem of Vim macros.