aboutsummaryrefslogtreecommitdiffstats
path: root/init.vim
diff options
context:
space:
mode:
Diffstat (limited to 'init.vim')
-rw-r--r--init.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.vim b/init.vim
index ac32d95..782cb9f 100644
--- a/init.vim
+++ b/init.vim
@@ -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