aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-01-16 12:20:10 +0300
committereug-vs <eug-vs@keemail.me>2021-01-16 12:20:10 +0300
commit606b5e664c520e38bc9e89588dc36a16c334dde0 (patch)
tree6ee8fb8f183fab75885505976a0763a25785a38d /.vimrc
parent72be0756c3a47717358cccd9209206e4e8d6c679 (diff)
downloaddotfiles-606b5e664c520e38bc9e89588dc36a16c334dde0.tar.gz
feat: find n -> new file in defx
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc13
1 files 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 <silent><buffer><expr> h
- \ defx#do_action('close_tree')
- nnoremap <silent><buffer><expr> dd
- \ defx#do_action('remove')
- nnoremap <silent><buffer><expr> cw
- \ defx#do_action('rename')
- nnoremap <silent><buffer><expr> q
- \ defx#do_action('quit')
+ nnoremap <silent><buffer><expr> h defx#do_action('close_tree')
+ nnoremap <silent><buffer><expr> dd defx#do_action('remove')
+ nnoremap <silent><buffer><expr> cw defx#do_action('rename')
+ nnoremap <silent><buffer><expr> n defx#do_action('new_file')
+ nnoremap <silent><buffer><expr> q defx#do_action('quit')
endfunction
call defx#custom#option('_', {