I like to use hlsearch , but I donβt want everything to be highlighted after the search to solve this problem, I could just use :nohlsearch or the abbreviation, but it still requires a lot of effort, so I decided to try that when clicking escape. I came up with the following:
nnoremap <ESC> :nohlsearch<CR>
This works exactly the way I want in GVim, which I usually use for development, but it does not work in vim.
If I'm looking for something in vim, press escape to turn off the selection and use one of the arrow keys to go. Vim goes directly to insert mode and inserts the character in a new line.
Since I have never come across using h , j , k and l for navigation, this is really annoying, and I would like to know how I can make vim behave like gvim.
If you need more information, you can find my full vim configuration here .
vim
Dasich
source share