I was trying to remap some keys to switch to the next buffer, but something doesn't work, I have these lines on my .vimrc file:
" Cambia tecla lider a <Space>
let mapleader="<Space>"
" Switch to next buffer
nnoremap <Leader>l :bn<CR>
" Switch to previous buffer
nnoremap <Leader>h :bp<CR>
" Split the window
nnoremap <Leader>k :split<CR>
Are those lines okay? or Is there something wrong?
An observation: when I change
<Leader>
to<Space>
it works.
let mapleader = "\<Space>"
. Note the back slash inside the quote.