1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:40:03 +08:00

fix(nerdtree): arrow key does not work

Problem: `<Left>` and `<Right>` key does not work
Solution: map `<Left>` and `<Right>` as `h` and `l`
This commit is contained in:
Shidong Wang 2021-09-22 22:54:02 +08:00
parent 218f16e4f5
commit 8c3dae578c
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848

View File

@ -28,6 +28,8 @@ function! s:nerdtreeinit() abort
nnoremap <silent><buffer> P :<C-u>call <SID>paste_to_file_manager()<CR>
nnoremap <silent><buffer> h :<C-u>call <SID>nerdtree_h()<CR>
nnoremap <silent><buffer> l :<C-u>call <SID>nerdtree_l()<CR>
nnoremap <silent><buffer> <Left> :<C-u>call <SID>nerdtree_h()<CR>
nnoremap <silent><buffer> <Right> :<C-u>call <SID>nerdtree_l()<CR>
nnoremap <silent><buffer> N :<C-u>call NERDTreeAddNode()<CR>
nnoremap <silent><buffer> . :<C-u>call <SID>nerdtree_dot()<CR>
nnoremap <silent><buffer> <C-Home> :<C-u>NERDTreeCWD<CR>