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

fix(nerdtree): fix key binding Home and End

This commit is contained in:
Shidong Wang 2021-09-25 00:41:22 +08:00
parent 3aecd6c31b
commit ba588581ee
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848

View File

@ -36,6 +36,8 @@ function! s:nerdtreeinit() abort
nnoremap <silent><buffer> <C-Home> :<C-u>NERDTreeCWD<CR>
nnoremap <silent><buffer> <CR> :<C-u>call <SID>nerdtree_enter()<CR>
" nnoremap <silent><buffer> <CR> :<C-u>silent! exe 'NERDTree' g:NERDTreeFileNode.GetSelected().path.str()<CR>
nnoremap <silent><buffer> <Home> :call cursor(2, 1)<cr>
nnoremap <silent><buffer> <End> :call cursor(line('$'), 1)<cr>
endfunction
function! s:paste_to_file_manager() abort