Fix the ü key
This commit is contained in:
@ -23,9 +23,6 @@ local autocmds = {
|
||||
resize_windows_proportionally = {
|
||||
{ 'VimResized', '*', ':wincmd =' };
|
||||
};
|
||||
toggle_search_highlighting = {
|
||||
{ 'InsertEnter', '*', 'setlocal nohlsearch' };
|
||||
};
|
||||
lua_highlight = {
|
||||
{ 'TextYankPost', '*', [[silent! lua vim.highlight.on_yank() {higroup='IncSearch', timeout=400}]] };
|
||||
};
|
||||
|
@ -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>")
|
||||
|
Reference in New Issue
Block a user