Mapping Ctrl+[ and Ctrl+] to move between buffers in Vim

Viewed 508

I'm trying to map Ctrl+[ and Ctrl+] to move between buffers.

I have this in my .vimrc:

nnoremap <c-[> :bprevious<CR>
nnoremap <c-]> :bnext<CR>
nnoremap <Esc> :noh<CR>

The Ctrl+] works. The Ctrl+[ trigger an :noh and I don't know why.

I would like to Ctrl+] and Ctrl+[ simply move between buffers and Esc to trigger an :nho.

2 Answers
Related