Have a problem with vim settings?
PHPz
PHPz 2017-05-16 16:37:18
0
4
691
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?

PHPz
PHPz

学习是最好的投资!

reply all(4)
迷茫

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: q
The effect is better when combined with the two

仅有的幸福

x is to save and exit

迷茫

Save and exit isn’t it ZZ?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template