dvliman
dvliman

Reputation: 606

vim mapping key does not work

I have been trying to map ctrl s to save during insert mode in vim. It never seem to work

http://vim.wikia.com/wiki/Map_Ctrl-S_to_save_current_or_new_files (and many other tutorials) does not seem to work

I am using iterm, vim 7, and I have .vimrc file under my current user. I have reloaded my .vimrc with :source $MYVIMRC

Did I do something wrong?

Same thing with mapping any other key. mapping just does not seem to work.

Upvotes: 7

Views: 2794

Answers (1)

Jan Hudec
Jan Hudec

Reputation: 76386

Many keys cannot be intercepted on terminal, because they are interpreted by the terminal and not passed to vim at all. Ctrl-S is one of those keys, meaning "suspend" to most terminals. Either use the GUI version of vim, or select key combinations that work on your terminal.

Upvotes: 7

Related Questions