Wednesday, July 8, 2015

Re: what does & mean in the vim command?

Le mercredi 08 juillet 2015 à 08:00, elearn2014@gmail.com a écrit:
> Here is a viim command
>
> nnoremap <silent> <F6>f :!firefox 'http://127.0.0.1/%:t' &<CR>
>
> What does &<CR> in the end of the command mean?

"<CR>" is simply return; without it, the mapping would enter the
commandline but not execute it. As for "&", it is used to run jobs in
the background in Linux, so Vim doesn't hang.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment