aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-08 16:07:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-08 16:07:03 +1200
commit1cf8247e025b27f72bec4fde73460528ac20bcdb (patch)
tree14220246469ee8818ae69a58d0f9614e3981bb43 /vim/vimrc
parent07d5852f1b8b3479aca1169df90137be54ed5fb2 (diff)
downloaddotfiles-1cf8247e025b27f72bec4fde73460528ac20bcdb.tar.gz
dotfiles-1cf8247e025b27f72bec4fde73460528ac20bcdb.zip
Separate <Space> and <Backspace> maps
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc9
1 files changed, 6 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index f8d5a80e..9485921a 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -180,12 +180,15 @@ imap <C-C> <Plug>InsertCancel
nnoremap <Plug>FixedJoin mzJ`z
nmap J <Plug>FixedJoin
-" Remap normal/visual <Space> to scroll down a page, and <Backspace> to scroll
-" back up
+" Remap normal/visual <Space> to scroll down a page
nnoremap <Space> <C-F>
-nnoremap <Backspace> <C-B>
if v:version >= 700
xnoremap <Space> <C-F>
+endif
+
+" Remap normal/visual <Backspace> to scroll up a page
+nnoremap <Backspace> <C-B>
+if v:version >= 700
xnoremap <Backspace> <C-B>
endif