aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-16 16:31:04 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-16 16:31:04 +1200
commit9199d96093a7eb35266547dd4c573776d8d86a39 (patch)
tree5094fe204d4ddcc0b399a5581fab16682ac8d6c3 /vim/vimrc
parentUse "written" not "saved" in vimrc comments (diff)
downloaddotfiles-9199d96093a7eb35266547dd4c573776d8d86a39.tar.gz
dotfiles-9199d96093a7eb35266547dd4c573776d8d86a39.zip
Map Backspace to CTRL-^ (:edit alt buffer) in Vim
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 6a4d8c6d..c466b8d7 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1045,6 +1045,12 @@ endif
" many of these.
"
+" Use backspace as an even quicker way to switch to the current buffer's
+" alternate buffer. User nickspoons of #vim was incredulous that I had never
+" used CTRL-^ and indeed did not know about it. I have since repented.
+"
+nnoremap <Backspace> <C-^>
+
" I find the space bar's default behavior in normal mode of moving right one
" character to be useless. Instead, I remap it to be a lazy way of paging
" through the argument list buffers, scrolling a page until the last line of