From bef022d7fbcc6f5c5ff525d6b799ba91d5693422 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Thu, 14 Feb 2019 18:16:08 +0000 Subject: Add shortcut for deleting file --- plugin/vim-options.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugin/vim-options.vim') diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index 1626b09..6125c13 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -126,6 +126,12 @@ nnoremap j}k^ vnoremap k{w vnoremap j}k^ nnoremap y :call system('nc -w 1 172.17.0.1 41401', @0) +" Delete current file and purge buffer +function! Rm() + :call delete(expand('%')) | bdelete! +endfunction +nnoremap erm :call Rm() + @@ -236,7 +242,7 @@ if !empty(glob($EditorDir.'plugged/taboo.vim/plugin/taboo.vim')) execute ":TabooRename " . term endif endfunction - nnoremap er :call RenameTab() + nnoremap err :call RenameTab() endif "----------------------------------------------------------------------------------------------------------------------- -- cgit v1.2.3