diff --git a/init.vim b/init.vim index 4ef5843..5ac10dd 100644 --- a/init.vim +++ b/init.vim @@ -76,6 +76,11 @@ imap :wa "Jump to last modification line map ö `. nnoremap ü :let @/='\<=expand("")\>':set hls +vnoremap ü : + \let old_reg=getreg('"')let old_regtype=getregtype('"') + \gvy:let @/=substitute( + \escape(@", '/\.*$^~['), '\_s\+', '\\_s\\+', 'g') + \gV:call setreg('"', old_reg, old_regtype):set hls " =================Comments============================ map :TComment