aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-08 03:20:50 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-08 03:20:50 +1200
commitc7e22dbf0a9797d729566215ac4350833004cb3f (patch)
tree48f49ff2142d786207807c8e168a1bb64944122c /vim/vimrc
parentMap normal <Backspace> in Vim to Ctrl+B (diff)
downloaddotfiles-c7e22dbf0a9797d729566215ac4350833004cb3f.tar.gz
dotfiles-c7e22dbf0a9797d729566215ac4350833004cb3f.zip
Bind leader maps for delete and insert
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 0885fd98..e8439a58 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -277,5 +277,10 @@ nnoremap <Bslash>y :<C-U>registers<CR>
" \z sets NZ English spelling (compare \u)
nnoremap <Bslash>z :<C-U>setlocal spelllang=en_nz<CR>
+" \DEL deletes the current buffer
+nnoremap <Bslash><Delete> :<C-U>bdelete<CR>
+" \INS edits a new buffer
+nnoremap <Bslash><Insert> :<C-U>enew<CR>
+
" Source any .vim files from ~/.vim/config
runtime! config/*.vim