Skip to main content
added 274 characters in body
Source Link
Luis Veliz
  • 453
  • 1
  • 5
  • 7

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.

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:

let mapleader="<Space>"
nnoremap <Leader>l :bn<CR>

Are those lines okay? or Is there something wrong?

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.

Post Undeleted by Luis Veliz
Post Deleted by Luis Veliz
Source Link
Luis Veliz
  • 453
  • 1
  • 5
  • 7

Remap <Space> key doesn't work

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:

let mapleader="<Space>"
nnoremap <Leader>l :bn<CR>

Are those lines okay? or Is there something wrong?