aboutsummaryrefslogtreecommitdiff
path: root/plugin/vim-options.vim
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2019-02-14 18:16:08 +0000
committerCody Hiar <codyfh@gmail.com>2019-02-14 18:16:08 +0000
commitbef022d7fbcc6f5c5ff525d6b799ba91d5693422 (patch)
tree637e3328f3b9ad0b9cb3b898ffba421c2096c1d1 /plugin/vim-options.vim
parent7588d50e036f4ffbd3ac0c14418db91c49d2b8e9 (diff)
Add shortcut for deleting file
Diffstat (limited to 'plugin/vim-options.vim')
-rw-r--r--plugin/vim-options.vim8
1 files changed, 7 insertions, 1 deletions
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
"-----------------------------------------------------------------------------------------------------------------------