diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-08 16:07:03 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-08 16:07:03 +1200 |
commit | 1cf8247e025b27f72bec4fde73460528ac20bcdb (patch) | |
tree | 14220246469ee8818ae69a58d0f9614e3981bb43 | |
parent | Use :setglobal and :setlocal in .vimrc (diff) | |
download | dotfiles-1cf8247e025b27f72bec4fde73460528ac20bcdb.tar.gz dotfiles-1cf8247e025b27f72bec4fde73460528ac20bcdb.zip |
Separate <Space> and <Backspace> maps
-rw-r--r-- | vim/vimrc | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |