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

add K binding to Defx (#3401)

K creates a new directory, just as with the default Vimfiler
This commit is contained in:
Pieter Joost van de Sande 2020-03-12 14:34:55 +01:00 committed by GitHub
parent c2b0b842a9
commit 3fbbeea8a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,6 +136,8 @@ function! s:defx_init()
\ defx#do_action('drop', 'tabedit') \ defx#do_action('drop', 'tabedit')
nnoremap <silent><buffer><expr> p nnoremap <silent><buffer><expr> p
\ defx#do_action('open', 'pedit') \ defx#do_action('open', 'pedit')
nnoremap <silent><buffer><expr> K
\ defx#do_action('new_directory')
nnoremap <silent><buffer><expr> N nnoremap <silent><buffer><expr> N
\ defx#do_action('new_file') \ defx#do_action('new_file')
nnoremap <silent><buffer><expr> d nnoremap <silent><buffer><expr> d