vmap :`>amx`my'xk$v'y!xclip -selection cu map :set pasteik:.!xclip -oJxkJx:set nopaste " Reopen the last edited position in files au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif