diff options
Diffstat (limited to 'init.vim')
| -rw-r--r-- | init.vim | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -21,7 +21,7 @@ nnoremap # ?\<<C-R>=expand('<cword>')<CR>\><CR> vnoremap <leader>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 <expr> <leader>dp ":saveas " . expand('%') + " Has to be the last line for the .nvimrc per project set secure |