Skip to content

Instantly share code, notes, and snippets.

@ewal
ewal / init.lua
Created August 20, 2023 01:22
neovim - prevent first jump when pattern matching
vim.keymap.set('n', '*', function()
vim.fn.setreg('/', '\\<' .. vim.fn.expand '<cword>' .. '\\>')
vim.opt.hlsearch = true
end, { silent = true })
@ewal
ewal / init.lua
Created October 17, 2023 12:05
Clear highlighted search on Escape
vim.keymap.set('n', '<Esc>', '<Esc>:noh<CR>', { silent = true })
### Keybase proof
I hereby claim:
* I am ewal on github.
* I am emilteamtailor (https://keybase.io/emilteamtailor) on keybase.
* I have a public key whose fingerprint is D033 DA3F E5FA 01E3 E1F3 8563 616B 277F 55ED 450E
To claim this, I am signing this object: