You can do this in vim with a simple mapping: nmap <C-x> mm[s1z=`m