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:
parent
f37cf0f49b
commit
3dbc78c03b
@ -215,10 +215,6 @@ if (exists("g:use_dvorak") && g:use_dvorak == 1)
|
|||||||
noremap h j
|
noremap h j
|
||||||
noremap t k
|
noremap t k
|
||||||
noremap n l
|
noremap n l
|
||||||
noremap D H
|
|
||||||
noremap H J
|
|
||||||
noremap T K
|
|
||||||
noremap N L
|
|
||||||
|
|
||||||
noremap gh gj
|
noremap gh gj
|
||||||
noremap gt gk
|
noremap gt gk
|
||||||
@ -276,6 +272,18 @@ if (exists("g:use_dvorak") && g:use_dvorak == 1)
|
|||||||
" NERDTree configuration
|
" NERDTree configuration
|
||||||
let NERDTreeMapOpenInTab='\t' " prevent t opening file
|
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
|
endif
|
||||||
|
|
||||||
" Save aliases.
|
" Save aliases.
|
||||||
|
Loading…
Reference in New Issue
Block a user