Use setreg/getreg instead of let @" =

Thanks to manga_osyo
Small refactoring
Fix test
Not support :q in old Vim