nmap <c-s> :w<CR>
In the vimrc file, I added the code shown above, but pressing ctrl+s had no effect when I used vim later. May I ask why?
迷茫2017-05-16 16:39:18
The problem has been solved, you need to add the following two lines to the ~/.bashrc file
bind -r '\C-s'
stty -ixon
我想大声告诉你2017-05-16 16:39:18
? ? ? ctrl+s? ?
What do you want to do, save?
Save in vim is: w, exit is: q
The effect is better when combined with the two