Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The way I'd do it in vim is to record a macro of doing it interactively by hand once, then play back that macro. I have space bound to @q to make playing back the macro in the q register easy (using the q register because q is also how you start and stop recording a macro.)

    noremap <Space> @q
These days I do this from evil-mode:

    (define-key evil-normal-state-map " " "@q")


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: