Q:

Evil-emacs: how to select last pasted text (like gv)?

How do I visually select the last pasted text with evil-emacs?
gv reselects the last visual selection. I'd like a function/snippet that does the same for my last pasted text.

A:

In my .vimrc I have 
nnoremap <leader>v '[V']

to do exactly this.
Amazingly, the sequence '[V'] works in evil just fine. To have a shortcut in Emacs, I wrote the following function:
(defun my/evil-select-pasted ()
  (interactive)
  (let ((start-marker (evil-get-marker ?\[))
        (end-marker (evil-get-marker ?\])))
        (evil-visual-select start-marker end-marker)))

The function can be bound to e.g. <leader>v using evil-leader:
(evil-leader/set-key "v" 'my/evil-select-pasted)

I'm relatively new to Emacs, so this might not be ideal, but it works for me. 
How I got there:
C-h k ' shows that ' runs evil-goto-mark-line. Looking at the source in evil-commands.el shows that evil-goto-mark-line uses evil-goto-mark, which itself makes use of the evil-get-marker function. Looking at evil-states.el, found with C-h k V, leads to the evil-visual-select function.

