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

In Vim you can do the same with key mapping. Like below, you have it for three different modes (normal, visual and insert):

nnoremap @@ :update<cr>

vnoremap @@ <c-c>:update<cr>gv

inoremap @@ <c-o>:update<cr>



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: