I would like to disable the Ctrl+Shift+W shortcut which closes the current terminal tab.
I am using Vim where Ctrl+R Ctrl+W moves between windows of the vim
instance. Sometimes it may happen that the Shift key is pressed unintentionally while trying to move to the next window. However, this immediately closes the current terminal tab with the editor session.
Can I disable Ctrl+Shift+W in the terminal and leaving other shortcuts untouched?
Best Answer
This part from the XFCE FAQ:
Otherwise put the following in your
~/.gtkrc-2.0 file
(create the file if it doesn't exist):When
xfsettingsd
is running you must change the setting with the Xfce GUI, not through the~/.gtkrc-2.0
file.Once that is done:
xfce4-terminal
Shortcut gone!
The User Interface Preferences plugin may not be installed and thus editing the file
may become necessary. Adding the line
will have disabled the shortcut after the next start of the terminal.