I\'m using Twitvim for the first time. Seeing all the URLs in there made me wonder, is there any way to open the URL under the cursor in your favorite browser or a specified one
Add following line to .vimrc file:
nmap yiW:!xdg-open " &
So in normal mode it pressing \ it selects current word and open it as address in web browser.
Leader by default is \ (but I've mapped it to , with let mapleader = ","
). Similarly, using imap you can map some key sequence in insert mode (but then, if it is 2 key sequence, it probably will override some default behaviour).