Is there a problem with vim settings?

  question, vim
nmap <c-s> :w<CR>

I added the code shown above to the vimrc file, but pressing ctrl+s had no effect in my later vim use. May I ask why?

The problem has been solved and the following two lines need to be added to the ~/.bashrc file

bind -r '\C-s'
 stty -ixon