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?
学习是最好的投资!
The problem has been solved, you need to add the following two lines to the ~/.bashrc file
bind -r '\C-s' stty -ixon
? ? ? ctrl+s? ? What do you want to do, save? Save in vim is: w, exit is: qThe effect is better when combined with the two
x is to save and exit
Save and exit isn’t it ZZ?
The problem has been solved, you need to add the following two lines to the ~/.bashrc file
? ? ? 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
x is to save and exit
Save and exit isn’t it ZZ?