issue with executing command silently

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

issue with executing command silently

Peiman Khosravi
Hello,

Running this command works as expected: 

:silent !open -a safari /Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Manual/<cfile>.html

But when I assign the same command to a key the 'silent' bit seems to be ignored and I get "Press ENTER or…". (See attached screenshot.)

Is this normal? And how to avoid it?

I've defined the key command in the folder ~/.vim/macros and it reads:

map ∂ :silent! !open -a safari /Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Manual/<cfile>.html<CR>

Thanks
Peiman Inline images 1

--
--
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
 
---
You received this message because you are subscribed to the Google Groups "vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: issue with executing command silently

Peiman Khosravi
Oh never mind. Stupid me. This does the job:

map <silent> ∂ :silent! !open -a safari /Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Manual/<cfile>.html<CR>




On 2 January 2014 22:54, peiman khosravi <[hidden email]> wrote:
Hello,

Running this command works as expected: 

:silent !open -a safari /Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Manual/<cfile>.html

But when I assign the same command to a key the 'silent' bit seems to be ignored and I get "Press ENTER or…". (See attached screenshot.)

Is this normal? And how to avoid it?

I've defined the key command in the folder ~/.vim/macros and it reads:

map ∂ :silent! !open -a safari /Library/Frameworks/CsoundLib.framework/Versions/5.2/Resources/Manual/<cfile>.html<CR>

Thanks
Peiman Inline images 1

--
--
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
 
---
You received this message because you are subscribed to the Google Groups "vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.