Question

I have the following in my .vimrc:

nmap <Leader>m <c-w>_<c-w><bar>

It works as intended, making the current window (in a set of split windows) expand both vertically and horizontally. The problem is that there is about a 1 second pause between the time I type <leader>m and the time the expansion takes place.

The reverse mapping, nmap <Leader>M <c-w>=, by contrast, works instantly.

How can I get rid of the pause?

Was it helpful?

Solution

Do :verbose nmap \m. Assuming \ is your<leader>. It will tell you map pings and the location the map was sourced.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top