How do I prevent <Ctrl-Z> from suspending Vim?
You can map <Ctrl-Z> to prevent the suspending. Here are some suggestions: - Make <Ctrl-Z> do nothing:
:map
- Make <Ctrl-Z> start a shell:
:map :shell
- Make <Ctrl-Z> give an error message:
:map :"suspending disabled
For the last example, the double quote is necessary in order to keep the message on the status line.
Comments (1)
Pepsh Pepshinsky
Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE