From 92988f8b38c11e4c9be7cb34411ab46bca636717 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Sun, 23 Jan 2022 22:35:23 +0100 Subject: improve local organize, add map for duplicates --- init.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'init.vim') diff --git a/init.vim b/init.vim index ac32d95..782cb9f 100644 --- a/init.vim +++ b/init.vim @@ -21,7 +21,7 @@ nnoremap # ?\<=expand('')\> vnoremap p "_dP " remove whitespaces -autocmd BufWritePre * %s/\s\+$//e +autocmd BufWritePre * :%s/\s\+$//e " augroup fmtphp " autocmd! @@ -58,5 +58,8 @@ let g:go_doc_keywordprg_enabled = 0 lua require('plugins') lua require("alpha") +" quick duplication of files +nnoremap dp ":saveas " . expand('%') + " Has to be the last line for the .nvimrc per project set secure -- cgit v1.2.3