The problem I am facing is that I displayed some keys and mouse events for serialization in vim while editing the file. But these mappings affect functionality if a quick fix buffer.
I was wondering if keys can be displayed depending on the buffer in which they are used.
EDIT - I am adding additional information on this subject. Consider a scenario. I want to display <C-F4> to close the buffer / window. Now this behavior may depend on several things.
If I edit the buffer, it should just close this buffer without changing the layout of the windows. For this I use buffkil .
It does not depend on the file extension, but on the type of buffer. I saw in the vim documentation that there is a list and a list in a list. Therefore, if it is specified in the buffer, it should close using bufkill commands.
If it is not a specified buffer, it should use the <cw>c command to close the buffer and change the window layout.
I am new to writing vim functions / scripts, can someone help me get started on this
source share