I need a autocmd trigger to use when the cursor moves between lines.
Now I'm using:
:autocmd CursorMoved * call MyFunc()
With it, MyFunc is executed in each cursor movement, but I need a trigger only when cursor move up or down (not right and left)
EDIT:
Checking the cursor line with the last recorded line works for me.
if line(".") != s:recordedLine
let s:recordedLine = line(".")
....