Fix the ü key

This commit is contained in:
2021-09-15 00:26:31 +02:00
parent 0367479622
commit 82f544a1f5
3 changed files with 3 additions and 4 deletions

View File

@@ -53,4 +53,5 @@ utils.map('v', '<', '<gv')
utils.map('v', '>', '>gv')
-- Highlight word under cursor
utils.map('n', 'ü', ":exec 'match Search /\\V\\<' . expand('<cword>') . '\\>/'<CR>")
utils.map('n', 'ü', ":let @/='\\<<C-R>=expand(\"<cword>\")<CR>\\>'<CR>:set hls<CR>")
utils.map('v', 'ü', "y:let @/='<C-R>=escape(@\",'/\\')<CR>'<CR>:set hls<CR>")