From bef022d7fbcc6f5c5ff525d6b799ba91d5693422 Mon Sep 17 00:00:00 2001
From: Cody Hiar <codyfh@gmail.com>
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')

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 <A-}> j}k^
 vnoremap <A-{> k{w
 vnoremap <A-}> j}k^
 nnoremap <leader>y :call system('nc -w 1 172.17.0.1 41401', @0)<CR>
+" Delete current file and purge buffer
+function! Rm()
+  :call delete(expand('%')) | bdelete!
+endfunction
+nnoremap <leader>erm :call Rm()<CR>
+
 
 
 
@@ -236,7 +242,7 @@ if !empty(glob($EditorDir.'plugged/taboo.vim/plugin/taboo.vim'))
       execute ":TabooRename " . term
     endif
   endfunction
-  nnoremap <leader>er :call RenameTab()<CR>
+  nnoremap <leader>err :call RenameTab()<CR>
 endif
 "-----------------------------------------------------------------------------------------------------------------------
 
-- 
cgit v1.2.3