I’m trying to create a keyboard shortcut to save my file in vim, so I would like to map control alt S to ESC, :, w, ENTER, a. Is there any easy way to do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look at this :
http://vim.wikia.com/wiki/Map_Ctrl-S_to_save_current_or_new_files
Or this:
In vim how to map "save" to ctrl-s
Or this:
http://sigttou.com/vim-ctrl-s