Fix the ü key

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

View File

@ -22,6 +22,7 @@ cmd 'colorscheme gruvbox-material' -- Put your favorite colorscheme h
cmd 'syntax enable'
cmd 'filetype plugin indent on'
cmd 'language en_US'
utils.opt('o', 'hlsearch', true)
utils.opt('o', 'guifont', 'Hack NF:h9')
utils.opt('o', 'swapfile', false)
utils.opt('o', 'backup', false)

View File

@ -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}]] };
};

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>")