3
1
I have mappings within my .vimrc
to open or switch to commonly used applications.
Use Case: I have 10 open applications and I'm in MacVim. It's faster to issue <Leader>sc
which is mapped to map <Leader>sc :silent !open /Applications/Google\ Chrome.app<CR>
, than to Command+Tab
several times to get to the Chrome app.
However, there is a delay by vim from the time I issue <Leader>sc
to when it executes the action.
How can I reduce this delay just for this mapping?
I'd like this to be as instantaneous as running open /Applications/Google\ Chrome.app
from the command line, however vim introduces a slight delay before it executes that command.
Edit: I noticed there is a timeoutlen
setting, however that is global. I'd like something similar just for these mappings.
I checked and the only mapping is the one I had defined. – Jey Balachandran – 2012-04-14T21:25:48.340
Then all I can suggest is to move things from your Vim configuration out of the way until you no longer have a delay. Is this console Vim or gVim? (Both?) – Heptite – 2012-04-14T22:29:25.437