Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've been adding a lot of things to my Vim configuration, and apparently one of the plugins I've installed is reclaiming . Whenever I use that key combination, it shows this error: "E784: Cannot close last tab page".

Is there a way to reclaim 's functionality without disabling the plugins? I mainly use it for switching between view panes in a split window.

share|improve this question

1 Answer 1

normal-mode ^W is pretty critical and plugins probably shouldn't remap it, so there might be a bug report to be made to the maintainer of the plugin.

You can do :map <C-W> to get a list of mappings for that combo and from there figure out what's mapping ^W. There may be multiple listings if the combo is mapped differently in different modes (ie insert, normal, visual).

The command :scriptnames may be useful to figure out where to find the scripts for the plugins listed by :map.

To just unmap it you can do unmap <C-W>, which will restore it to its normal functionality.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.