From 606b5e664c520e38bc9e89588dc36a16c334dde0 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 16 Jan 2021 12:20:10 +0300 Subject: feat: find n -> new file in defx --- .vimrc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.vimrc b/.vimrc index de1d3f6..e3ca760 100644 --- a/.vimrc +++ b/.vimrc @@ -59,14 +59,11 @@ function! s:defx_my_settings() abort \ defx#is_directory() ? \ defx#do_action('open_tree') : \ defx#do_action('open', 'choose') - nnoremap h - \ defx#do_action('close_tree') - nnoremap dd - \ defx#do_action('remove') - nnoremap cw - \ defx#do_action('rename') - nnoremap q - \ defx#do_action('quit') + nnoremap h defx#do_action('close_tree') + nnoremap dd defx#do_action('remove') + nnoremap cw defx#do_action('rename') + nnoremap n defx#do_action('new_file') + nnoremap q defx#do_action('quit') endfunction call defx#custom#option('_', { -- cgit v1.2.3