vmap <F2> "*y<CR> vmap => Visual mode, e.g. Select/Highlight your text <F2> => map F2 key "* => register for clipboard y => copy How to use it: 1. select the text in Vim 2. Press F2 key 3. paste the text somewhere, to your browser