1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

vim: fix dhtn navigation in :Explore

This commit is contained in:
Joe Groocock 2018-10-19 14:44:31 +01:00
parent f37cf0f49b
commit 3dbc78c03b
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -215,10 +215,6 @@ if (exists("g:use_dvorak") && g:use_dvorak == 1)
noremap h j
noremap t k
noremap n l
noremap D H
noremap H J
noremap T K
noremap N L
noremap gh gj
noremap gt gk
@ -276,6 +272,18 @@ if (exists("g:use_dvorak") && g:use_dvorak == 1)
" NERDTree configuration
let NERDTreeMapOpenInTab='\t' " prevent t opening file
" Also remap keys in :Explore
augroup netrw_dvorak_fix
autocmd!
autocmd filetype netrw call Fix_netrw_maps_for_dvorak()
augroup END
function! Fix_netrw_maps_for_dvorak()
noremap <buffer> d h
noremap <buffer> h j
noremap <buffer> t k
noremap <buffer> n l
endfunction
endif
" Save aliases.