aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-25 02:57:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-25 02:57:00 +1200
commit4c8a76e7af12d31cde8bebe385d6e779c399298c (patch)
tree711b6ead716d516b2720d40062dc95d70f34e53f
parentUse plain :set for 'viminfofile' (diff)
downloaddotfiles-4c8a76e7af12d31cde8bebe385d6e779c399298c.tar.gz
dotfiles-4c8a76e7af12d31cde8bebe385d6e779c399298c.zip
Rearrange spacebar mapping
-rw-r--r--vim/vimrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 8a4e16d9..3a686b39 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -238,11 +238,11 @@ catch
set background=dark
endtry
-" Remap normal space to scroll down a page
-nnoremap <Space> <PageDown>
-" Do a :next after hitting the last line
-if &loadplugins " Don't change the mapping if we won't be loading the plugin
+" Space bar scrolls down a page, :next if plugin available
+if &loadplugins
nmap <Space> <Plug>(ScrollNext)
+else
+ nnoremap <Space> <PageDown>
endif
" Remap insert Ctrl-C to undo the escaped insert operation